]> git.proxmox.com Git - proxmox-backup.git/commitdiff
d/postinst: followup: grep and sed use different regex escaping ..
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 29 Oct 2020 19:25:28 +0000 (20:25 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 29 Oct 2020 19:25:37 +0000 (20:25 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/postinst

index 00c035a9a489969fd15500c13e604f62fdff5242..300fdf46f29489539b08d6b12fe9c7f9b1e4bbb0 100644 (file)
@@ -18,7 +18,7 @@ case "$1" in
        # FIXME: Remove with 1.1
        if test -n "$2"; then
                if dpkg --compare-versions "$2" 'lt' '0.9.4-1'; then
-                       if grep -q  -P -e '^\s\+verify-schedule ' /etc/proxmox-backup/datastore.cfg; then
+                       if grep -s -q  -P -e '^\s+verify-schedule ' /etc/proxmox-backup/datastore.cfg; then
                                echo "NOTE: drop all verify schedules from datastore config."
                                echo "You can now add more flexible verify jobs"
                                flock -w 30 /etc/proxmox-backup/.datastore.lck \