forked from AoS_Digital_Health_Platform/aos-homer-ke-prod
Update 'aos-alpine-homer-base-install.sh'
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user