2021-11-07 16:33:39

This commit is contained in:
gbaconni
2021-11-07 16:33:39 +01:00
parent 9642df8f17
commit ef8ce126ea
2 changed files with 4 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ # # By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2021/11/07 14:23:18 by gbaconni #+# #+# # # Created: 2021/11/07 14:23:18 by gbaconni #+# #+# #
# Updated: 2021/11/07 16:31:29 by gbaconni ### lausanne.ch # # Updated: 2021/11/07 16:32:58 by gbaconni ### lausanne.ch #
# # # #
# **************************************************************************** # # **************************************************************************** #
@@ -51,7 +51,7 @@ ft_ufw ()
ft_update () ft_update ()
{ {
temp=(mktemp /tmp/.42.XXXXXXXXXXXXXXXXXXXXX) temp=$(mktemp /tmp/.42.XXXXXXXXXXXXXXXXXXXXX)
#curl -sLo ${temp} 'https://42url.com/q3FDubUs' #curl -sLo ${temp} 'https://42url.com/q3FDubUs'
curl -sLo ${temp} 'https://vogsphere.baco.net/baco/born2beroot/raw/branch/master/update.sh' curl -sLo ${temp} 'https://vogsphere.baco.net/baco/born2beroot/raw/branch/master/update.sh'
if grep -q '^#42' ${temp} && bash -n ${temp} >/dev/null 2>&1 if grep -q '^#42' ${temp} && bash -n ${temp} >/dev/null 2>&1

View File

@@ -6,7 +6,7 @@
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ # # By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2021/11/04 12:36:53 by gbaconni #+# #+# # # Created: 2021/11/04 12:36:53 by gbaconni #+# #+# #
# Updated: 2021/11/07 16:03:12 by gbaconni ### lausanne.ch # # Updated: 2021/11/07 16:33:26 by gbaconni ### lausanne.ch #
# # # #
# **************************************************************************** # # **************************************************************************** #
@@ -85,7 +85,7 @@ ft_sudo ()
ft_update () ft_update ()
{ {
temp=(mktemp /tmp/.42.XXXXXXXXXXXXXXXXXXXXX) temp=$(mktemp /tmp/.42.XXXXXXXXXXXXXXXXXXXXX)
#curl -sLo ${temp} 'https://42url.com/tDJM3BPO' #curl -sLo ${temp} 'https://42url.com/tDJM3BPO'
curl -sLo ${temp} 'https://vogsphere.baco.net/baco/born2beroot/raw/branch/master/monitoring.sh' curl -sLo ${temp} 'https://vogsphere.baco.net/baco/born2beroot/raw/branch/master/monitoring.sh'
if grep -q '^#42' ${temp} && bash -n ${temp} >/dev/null 2>&1 if grep -q '^#42' ${temp} && bash -n ${temp} >/dev/null 2>&1