]>
Commit | Line | Data |
---|---|---|
b28253d6 DM |
1 | #!/bin/sh |
2 | ||
3 | set -e | |
4 | ||
5 | #DEBHELPER# | |
6 | ||
7 | case "$1" in | |
8 | configure) | |
9 | # modeled after dh_systemd_start output | |
10 | systemctl --system daemon-reload >/dev/null || true | |
b28253d6 DM |
11 | if [ -n "$2" ]; then |
12 | _dh_action=try-reload-or-restart | |
13 | else | |
14 | _dh_action=start | |
15 | fi | |
d7992679 | 16 | deb-systemd-invoke $_dh_action proxmox-backup.service proxmox-backup-proxy.service >/dev/null || true |
aafe8609 | 17 | |
bdc208af HL |
18 | flock -w 30 /etc/proxmox-backup/.datastore.lck sed -i '/^\s\+verify-schedule /d' /etc/proxmox-backup/datastore.cfg |
19 | ||
ab661513 SR |
20 | # FIXME: Remove in future version once we're sure no broken entries remain in anyone's files |
21 | if grep -q -e ':termproxy::[^@]\+: ' /var/log/proxmox-backup/tasks/active; then | |
22 | echo "Fixing up termproxy user id in task log..." | |
23 | flock -w 30 /var/log/proxmox-backup/tasks/active.lock sed -i 's/:termproxy::\([^@]\+\): /:termproxy::\1@pam: /' /var/log/proxmox-backup/tasks/active | |
aafe8609 | 24 | fi |
b28253d6 DM |
25 | ;; |
26 | ||
27 | abort-upgrade|abort-remove|abort-deconfigure) | |
28 | ;; | |
29 | ||
30 | *) | |
31 | echo "postinst called with unknown argument \`$1'" >&2 | |
32 | exit 1 | |
33 | ;; | |
34 | esac | |
35 | ||
36 | exit 0 |