From e5bd4fe003b5e8478da3f8a44d95acfcfb1267ac Mon Sep 17 00:00:00 2001 From: JoelHMikael Date: Sun, 19 Dec 2021 19:55:51 +0200 Subject: More fixes to the running --- crontab_add.txt | 2 +- init.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3