aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoelHMikael <joel.h.kronqvist@gmail.com>2021-12-19 19:55:51 +0200
committerJoelHMikael <joel.h.kronqvist@gmail.com>2021-12-19 19:55:51 +0200
commite5bd4fe003b5e8478da3f8a44d95acfcfb1267ac (patch)
treea9e766aee29d7a6031bed591f3bae5163fa173fb
parent0cd168efb270cff37d6c3121529ecbf29b226e51 (diff)
downloadLYLLRuoka-e5bd4fe003b5e8478da3f8a44d95acfcfb1267ac.tar.gz
LYLLRuoka-e5bd4fe003b5e8478da3f8a44d95acfcfb1267ac.zip
More fixes to the running
-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