diff options
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 } |
