Browse Source

Update 'aos-alpine-homer-base-install.sh'

master
Steven Uggowitzer 4 years ago
parent
commit
ebdc8b5b59
  1. 3
      aos-alpine-homer-base-install.sh

3
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

Loading…
Cancel
Save