Download this file
| 1 | # update-platform-binary.sh: the last two lines it needs |
| 2 | |
| 3 | After the `carlos-restart.path` block, guarded the same way: |
| 4 | |
| 5 | if [ -f /etc/systemd/system/carlos-system-update.path ]; then |
| 6 | systemctl enable --now carlos-system-update.path |
| 7 | systemctl enable carlos-system-recover.service |
| 8 | fi |
| 9 | |
| 10 | And to the post-conditions at the end: |
| 11 | |
| 12 | systemctl is-active carlos-system-update.path |
| 13 | systemctl is-enabled carlos-system-recover.service |
| 14 | |
| 15 | Same change in amadan.net/tito/carlos-infrastructure/scripts/update-platform-binary.sh. |
| 16 | After every deployment has been hand-rolled once onto a binary carrying the |
| 17 | system-update spec, the script is retired (spec §10). |
| 18 | |