From 94d4ec42b52252a4956e633074e92ebfdd49f596 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Fri, 13 May 2022 14:37:25 +0300 Subject: Made init work as sudo so that the server gets permissions to lower ports --- init.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'init.sh') diff --git a/init.sh b/init.sh index 8ff0aae..dfca76c 100755 --- a/init.sh +++ b/init.sh @@ -4,10 +4,8 @@ exec 2>>/tmp/slogs echo | date echo "Init running" -cd ~ - echo "Removing old packages..." -rm -rf ./FoodJS +rm -rf $PATH_TO_LYLLRUOKA echo "Waiting for connection..." while [ ! "$(ping 'www.github.com' -c 1)" ] @@ -19,5 +17,5 @@ echo "Cloning new packages..." git clone "https://github.com/JoelHMikael/FoodJS.git" echo "Starting server..." -cd ~/FoodJS -node ./server.js +cd $PATH_TO_LYLLRUOKA +node server.js -- cgit v1.2.3