From 159f398b0d1d340d2f4d122619b920e67ba18bff Mon Sep 17 00:00:00 2001 From: Administrator Date: Wed, 14 Aug 2024 12:12:55 +0000 Subject: [PATCH] Copy zsync conf from backup if exists --- bashclub-zsync/DEBIAN/postinst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bashclub-zsync/DEBIAN/postinst b/bashclub-zsync/DEBIAN/postinst index 177b9b0..4d5356c 100755 --- a/bashclub-zsync/DEBIAN/postinst +++ b/bashclub-zsync/DEBIAN/postinst @@ -18,3 +18,6 @@ fi chown root:root /etc/logrotate.d/bashclub-zsync chmod 644 /etc/logrotate.d/bashclub-zsync +if [ ! -f /etc/bashclub/zsync.conf ] && [ -f /etc/bashclub/zsync.conf.backup_$(date +%Y-%m-%d) ] ; then + cp /etc/bashclub/zsync.conf.backup_$(date +%Y-%m-%d) /etc/bashclub/zsync.conf +fi