Some checks are pending
Playwright Tests / test (push) Waiting to run
There were two near-identical update scripts and they drifted: the npm ci fix from 1.114.1 only ever landed in update-app.sh, so the boot path kept running npm install. my-weekly-todo-update.service now runs update-app.sh, and boot-update.sh is a shim kept only so a not-yet-recopied unit still works. To be usable at boot the script needed three things it did not have: - Skip the rebuild when HEAD already matches origin/main and a standalone build exists, so a reboot is not a full rebuild every time (--force overrides). - Do not restart PM2 when its daemon is not up yet. At boot this unit runs before pm2-root.service, and probing with `pm2 describe` would spawn a stray daemon that races the real service, so it checks the pid file. - A flock single-instance lock, so a boot run and a manual run cannot install into the same tree at once. It also picks up prisma migrate deploy / generate and the .env copy that only the boot script had. The log moved to /var/log/my-weekly-todo-update.log. v1.115.2 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
9 lines
410 B
Bash
Executable File
9 lines
410 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Deprecated: kept only so a stale /etc/systemd/system/my-weekly-todo-update.service that
|
|
# still points here keeps working. update-app.sh is the single update path — it handles both
|
|
# the manual deploy and the boot run. Once the unit has been recopied from
|
|
# scripts/my-weekly-todo-update.service, this file can be deleted.
|
|
|
|
exec /bin/bash /root/My-Weekly-ToDo-List/scripts/update-app.sh "$@"
|