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