[pbs-devel] [PATCH v4 proxmox-backup 10/10] postinst: correct invalid old datastore configs
Hannes Laimer
h.laimer at proxmox.com
Tue Oct 20 11:10:12 CEST 2020
Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
---
debian/postinst | 2 ++
1 file changed, 2 insertions(+)
diff --git a/debian/postinst b/debian/postinst
index adf49da6..2e6e145f 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -15,6 +15,8 @@ case "$1" in
fi
deb-systemd-invoke $_dh_action proxmox-backup.service proxmox-backup-proxy.service >/dev/null || true
+ flock -w 30 /etc/proxmox-backup/.datastore.lck sed -i '/^\s\+verify-schedule /d' /etc/proxmox-backup/datastore.cfg
+
# 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..."
--
2.20.1
More information about the pbs-devel
mailing list