From 5bd482543289fe5b4c26cc4885d8342982588ae1 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 11 Mar 2021 10:18:39 +0100 Subject: [PATCH] d/postinst: fixup tape permissions if existing with wrong permissions Signed-off-by: Thomas Lamprecht --- debian/postinst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/postinst b/debian/postinst index 6641b7eb..283aa419 100644 --- a/debian/postinst +++ b/debian/postinst @@ -48,6 +48,11 @@ case "$1" in /etc/proxmox-backup/remote.cfg || true fi fi + # FIXME: remove with 2.0 + if [ -d "/var/lib/proxmox-backup/tape" ] && + [ "$(stat --printf '%a' '/var/lib/proxmox-backup/tape')" != "750" ]; then + chmod 0750 /var/lib/proxmox-backup/tape || true + fi # 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..."