mirror of
http://gitlab.bashclub.org/bashclub/zsync.git
synced 2024-11-28 06:03:19 +01:00
Copy zsync conf from backup if exists
This commit is contained in:
parent
9f6e3a2264
commit
159f398b0d
@ -18,3 +18,6 @@ fi
|
|||||||
|
|
||||||
chown root:root /etc/logrotate.d/bashclub-zsync
|
chown root:root /etc/logrotate.d/bashclub-zsync
|
||||||
chmod 644 /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
|
||||||
|
Loading…
Reference in New Issue
Block a user