From ebdc8b5b59b45f2290da898a173ef3ab9f6a7efa Mon Sep 17 00:00:00 2001 From: Steven Uggowitzer Date: Mon, 10 Jan 2022 16:14:57 +0000 Subject: [PATCH] Update 'aos-alpine-homer-base-install.sh' --- aos-alpine-homer-base-install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aos-alpine-homer-base-install.sh b/aos-alpine-homer-base-install.sh index 6a8ffcd..4ec7155 100755 --- a/aos-alpine-homer-base-install.sh +++ b/aos-alpine-homer-base-install.sh @@ -25,8 +25,6 @@ yarn global add serve adduser -D -g 'AoS Dashboard' homer su -c "cd /home/homer; git clone $pkg_path " -s /bin/sh homer su -c "ln -s /home/homer/aos-homer-np-prod /home/homer/aos-dashboard" -s /bin/sh homer -git clone $pkg_path - cat > /etc/crontabs/root << 'EOF' # do daily/weekly/monthly maintenance @@ -37,6 +35,7 @@ cat > /etc/crontabs/root << 'EOF' 0 3 * * 6 run-parts /etc/periodic/weekly 0 5 1 * * run-parts /etc/periodic/monthly @reboot su -c "cd /home/homer/aos-dashboard/homer && /usr/bin/npx serve --no-clipboard 2>&1 > /dev/null &" -s /bin/sh homer +0 0 * 0 0 su -c "cd /home/homer/aos-dashboard/homer && git pull 2>&1 > /dev/null &" -s /bin/sh homer EOF chmod 600 /etc/crontabs/root