forked from extern/zsync
macke backup of zsync.conf before updating
This commit is contained in:
parent
5ceb83f086
commit
5f3eccbee7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user