From 603a6bd1833319c8880cb6f95e6ce17eeee5b43a Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 29 Oct 2020 20:25:28 +0100 Subject: [PATCH] d/postinst: followup: grep and sed use different regex escaping .. Signed-off-by: Thomas Lamprecht --- debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index 00c035a9..300fdf46 100644 --- a/debian/postinst +++ b/debian/postinst @@ -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 \