From 0f8dcba6fe350ffb74331cb636046c30e784ca8d Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Mon, 17 Oct 2022 19:43:07 +0300 Subject: Added instructions to start server at reboot. Doesn't neccessarily work. Updated the init script. No server code updates for now. --- init.sh | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'init.sh') diff --git a/init.sh b/init.sh index 51791d6..55be6ee 100755 --- a/init.sh +++ b/init.sh @@ -1,23 +1,22 @@ #!/bin/sh exec 1>>/tmp/slogs exec 2>>/tmp/slogs +echo "========" echo | date -echo "Init running" +echo "# Init running" -echo "Removing old packages..." -rm -rf $PATH_TO_LYLLRUOKA - -echo "Waiting for connection..." -while [ ! "$(ping 'www.github.com' -c 1)" ] -do +echo "# Waiting for connection..." +while ! ping 'example.org' -c 1; do sleep 5 done +echo "# Connected to internet!" -cd "${PATH_TO_LYLLRUOKA%%FoodJS}" - -echo "Cloning new packages..." -git clone "https://github.com/JoelHMikael/FoodJS.git" +echo "" -cd $PATH_TO_LYLLRUOKA -echo "Starting server..." +cd "$BASE_DIR/LYLLRuoka" +echo "# node server.js:" node server.js + +echo "========" +echo "" +echo "" -- cgit v1.2.3