diff --git a/deploy/deploy.sh b/deploy/deploy.sh index c1646fe..9c3920c 100755 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -11,6 +11,10 @@ ssh "root@$HOST" ' cd /opt/wizwar && npm install --no-audit --no-fund chown -R wizwar:wizwar /opt/wizwar cp /opt/wizwar/deploy/wizwar.service /etc/systemd/system/wizwar.service + # The backup script is cron-run from /usr/local/bin — install it every + # deploy, or the repo copy and the live copy drift apart (they did: + # the Sentry check-ins shipped in the repo and never reached the box). + install -m 755 /opt/wizwar/deploy/wizwar-backup.sh /usr/local/bin/wizwar-backup.sh systemctl daemon-reload systemctl enable --now wizwar systemctl restart wizwar