9 # modeled after dh_systemd_start output
10 systemctl
--system daemon-reload
>/dev
/null || true
12 _dh_action
=try-reload-or-restart
16 deb-systemd-invoke
$_dh_action proxmox-backup.service proxmox-backup-proxy.service
>/dev
/null || true
18 # FIXME: Remove with 1.1
20 if dpkg
--compare-versions "$2" 'lt' '0.9.4-1'; then
21 if grep -s -q -P -e '^\s+verify-schedule ' /etc
/proxmox-backup
/datastore.cfg
; then
22 echo "NOTE: drop all verify schedules from datastore config."
23 echo "You can now add more flexible verify jobs"
24 flock
-w 30 /etc
/proxmox-backup
/.datastore.lck \
25 sed -i '/^\s\+verify-schedule /d' /etc
/proxmox-backup
/datastore.cfg || true
29 # FIXME: Remove in future version once we're sure no broken entries remain in anyone's files
30 if grep -q -e ':termproxy::[^@]\+: ' /var
/log
/proxmox-backup
/tasks
/active
; then
31 echo "Fixing up termproxy user id in task log..."
32 flock
-w 30 /var
/log
/proxmox-backup
/tasks
/active.lock
sed -i 's/:termproxy::\([^@]\+\): /:termproxy::\1@pam: /' /var
/log
/proxmox-backup
/tasks
/active || true
36 abort-upgrade|abort-remove|abort-deconfigure
)
40 echo "postinst called with unknown argument \`$1'" >&2