d/postinst: only check for broken task index on upgrade

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-03-11 10:07:23 +01:00
parent 2a29d9a1ee
commit 8f7e5b028a

10
debian/postinst vendored
View File

@ -48,11 +48,11 @@ case "$1" in
/etc/proxmox-backup/remote.cfg || true /etc/proxmox-backup/remote.cfg || true
fi fi
fi fi
fi # FIXME: Remove in future version once we're sure no broken entries remain in anyone's files
# FIXME: Remove in future version once we're sure no broken entries remain in anyone's files if grep -q -e ':termproxy::[^@]\+: ' /var/log/proxmox-backup/tasks/active; then
if grep -q -e ':termproxy::[^@]\+: ' /var/log/proxmox-backup/tasks/active; then echo "Fixing up termproxy user id in task log..."
echo "Fixing up termproxy user id in task log..." flock -w 30 /var/log/proxmox-backup/tasks/active.lock sed -i 's/:termproxy::\([^@]\+\): /:termproxy::\1@pam: /' /var/log/proxmox-backup/tasks/active || true
flock -w 30 /var/log/proxmox-backup/tasks/active.lock sed -i 's/:termproxy::\([^@]\+\): /:termproxy::\1@pam: /' /var/log/proxmox-backup/tasks/active || true fi
fi fi
;; ;;