]> git.proxmox.com Git - proxmox-backup.git/commitdiff
postinst: correct invalid old datastore configs
authorHannes Laimer <h.laimer@proxmox.com>
Tue, 20 Oct 2020 09:10:12 +0000 (11:10 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Oct 2020 10:51:35 +0000 (12:51 +0200)
Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
debian/postinst

index adf49da632efa277a29091f14bc8664245589952..2e6e145f59ead60f03d74fe53b79e99c6365fb39 100644 (file)
@@ -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..."