aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crontab_add.txt2
-rwxr-xr-xinit.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/crontab_add.txt b/crontab_add.txt
index 5e7db63..c5135cb 100644
--- a/crontab_add.txt
+++ b/crontab_add.txt
@@ -1,6 +1,6 @@
# these are probably going to need some fixing, for example the shutdown path may differ
# to normal user:
-@reboot /home/USERNAME/FoodJS/init.sh
+@reboot /home/USERNAME/init.sh
# to root:
0 0 * * 7 /sbin/shutdown -r now
diff --git a/init.sh b/init.sh
index 0549354..2af8e9c 100755
--- a/init.sh
+++ b/init.sh
@@ -1,4 +1,6 @@
#!/bin/sh
+# Put in this dir so that it can execute:
cd /home/joel
+rm -r -f ./FoodJS
git clone "https://github.com/JoelHMikael/FoodJS.git" >> /tmp/test.txt
node ./FoodJS/server.js