From 3fafd0e2a127a43c005152746c13bf46ca572002 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 8 Apr 2021 18:05:01 +0200 Subject: [PATCH] d/postinst: check for old tape.cfg Signed-off-by: Thomas Lamprecht --- debian/postinst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/debian/postinst b/debian/postinst index 283aa419..65926f7f 100644 --- a/debian/postinst +++ b/debian/postinst @@ -48,6 +48,16 @@ case "$1" in /etc/proxmox-backup/remote.cfg || true fi fi + if dpkg --compare-versions "$2" 'le' '1.0.14-1'; then + # FIXME: Remove with 2.0 + if grep -s -q -P -e '^linux:' /etc/proxmox-backup/tape.cfg; then + echo "=========" + echo "= NOTE: You have now unsupported 'linux' tape drives configured." + echo "= * Execute 'udevadm control --reload-rules && udevadm trigger' to update /dev" + echo "= * Edit '/etc/proxmox-backup/tape.cfg', remove 'linux' entries and re-add over CLI/GUI" + echo "=========" + fi + fi # FIXME: remove with 2.0 if [ -d "/var/lib/proxmox-backup/tape" ] && [ "$(stat --printf '%a' '/var/lib/proxmox-backup/tape')" != "750" ]; then