diff options
| author | Sam Scholten | 2025-10-24 09:17:13 +1000 |
|---|---|---|
| committer | Sam Scholten | 2025-10-24 09:17:13 +1000 |
| commit | 025e2281697ec4a5655c389f012087835c165302 (patch) | |
| tree | c3e03680ffbd8cd25579cd8ddda057ac567ba6ae /update.sh | |
| parent | bbeb5907d4518a606086cae0aff063d1aca2a009 (diff) | |
| download | drestic-025e2281697ec4a5655c389f012087835c165302.tar.gz drestic-025e2281697ec4a5655c389f012087835c165302.zip | |
Add timer updates to update.sh and create upgrade make target
- Modified update.sh to also copy timer files (restic-backup.timer and restic-check.timer)
- Added 'upgrade' make target that reminds users to git pull first
- Updated help text to clarify difference between 'update' and 'upgrade'
Diffstat (limited to 'update.sh')
| -rwxr-xr-x | update.sh | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -86,16 +86,20 @@ update_services() { if [ "$install_type" = "system" ]; then systemd_dir="/etc/systemd/system" - log "Updating systemd services in $systemd_dir" + log "Updating systemd services and timers in $systemd_dir" sudo cp systemd/restic-backup.service "$systemd_dir/" sudo cp systemd/restic-check.service "$systemd_dir/" + sudo cp systemd/restic-backup.timer "$systemd_dir/" + sudo cp systemd/restic-check.timer "$systemd_dir/" sudo systemctl daemon-reload else systemd_dir="$HOME/.config/systemd/user" mkdir -p "$systemd_dir" - log "Updating systemd services in $systemd_dir" + log "Updating systemd services and timers in $systemd_dir" cp systemd/restic-backup.service "$systemd_dir/" cp systemd/restic-check.service "$systemd_dir/" + cp systemd/restic-backup.timer "$systemd_dir/" + cp systemd/restic-check.timer "$systemd_dir/" systemctl --user daemon-reload fi } |
