aboutsummaryrefslogtreecommitdiff
path: root/init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'init.sh')
-rwxr-xr-xinit.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/init.sh b/init.sh
index dfca76c..fce90af 100755
--- a/init.sh
+++ b/init.sh
@@ -5,7 +5,9 @@ echo | date
echo "Init running"
echo "Removing old packages..."
-rm -rf $PATH_TO_LYLLRUOKA
+rm -rf "${PATH_TO_LYLLRUOKA%%FoodJS}"
+
+cd "${PATH_TO_LYLLRUOKA%%FoodJS}"
echo "Waiting for connection..."
while [ ! "$(ping 'www.github.com' -c 1)" ]
@@ -16,6 +18,6 @@ done
echo "Cloning new packages..."
git clone "https://github.com/JoelHMikael/FoodJS.git"
-echo "Starting server..."
cd $PATH_TO_LYLLRUOKA
+echo "Starting server..."
node server.js