From 5f3eccbee792e6bac2cd094a4472e2917c45655c Mon Sep 17 00:00:00 2001 From: Administrator Date: Wed, 14 Aug 2024 11:46:57 +0000 Subject: [PATCH] macke backup of zsync.conf before updating --- bashclub-zsync/DEBIAN/postinst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bashclub-zsync/DEBIAN/postinst b/bashclub-zsync/DEBIAN/postinst index 177b9b0..90fb336 100755 --- a/bashclub-zsync/DEBIAN/postinst +++ b/bashclub-zsync/DEBIAN/postinst @@ -16,5 +16,9 @@ if [ -f /etc/logrotate.d/bashclub_zsync ]; then rm -f /etc/logrotate.d/bashclub_zsync fi +if [ -f /etc/bashclub/zsync.conf ]; then + mv /etc/bashclub/zsync.conf.backup_$(date +%Y-%m-%d) +fi + chown root:root /etc/logrotate.d/bashclub-zsync chmod 644 /etc/logrotate.d/bashclub-zsync