Copy zsync conf from backup if exists

This commit is contained in:
Administrator 2024-08-14 12:12:55 +00:00
parent 9f6e3a2264
commit 159f398b0d

View File

@ -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