[pbs-devel] [PATCH proxmox-backup 3/9] d/postinst: migrate notification mode default on update
Lukas Wagner
l.wagner at proxmox.com
Mon Jun 23 16:13:09 CEST 2025
Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
Notes:
Please set the version guard in d/postinst to the correct version when
applying this patch
debian/postinst | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/debian/postinst b/debian/postinst
index 7f4c57cc..6f060810 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -40,6 +40,13 @@ case "$1" in
true
fi
+ # TODO: Make sure the version is correct when applying
+ if dpkg --compare-versions "$2" 'lt' '4.0.0~'; then
+ proxmox-backup-manager migrate-config default-notification-mode \
+ || echo "Failed migrate tape-job/datastore notification mode, please check manually"
+ true
+ fi
+
if dpkg --compare-versions "$2" 'lt' '2.3.1~' && test -e /etc/proxmox-backup/.datastore.lck; then
lock_user="$(stat --format '%U' /etc/proxmox-backup/.datastore.lck)"
if [ "${lock_user}" != "backup" ]; then
--
2.39.5
More information about the pbs-devel
mailing list