From 8f7e5b028a30a85a9e33c17ea9114b3394e19bc9 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 11 Mar 2021 10:07:23 +0100 Subject: [PATCH] d/postinst: only check for broken task index on upgrade Signed-off-by: Thomas Lamprecht --- debian/postinst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/debian/postinst b/debian/postinst index 4c29dd97..6641b7eb 100644 --- a/debian/postinst +++ b/debian/postinst @@ -48,11 +48,11 @@ case "$1" in /etc/proxmox-backup/remote.cfg || true fi fi - fi - # 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 - 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 + # 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 + 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 + fi fi ;;