forked from extern/zsync
place backup into the correct file
This commit is contained in:
parent
5f3eccbee7
commit
9b24ac8c86
@ -16,9 +16,5 @@ if [ -f /etc/logrotate.d/bashclub_zsync ]; then
|
|||||||
rm -f /etc/logrotate.d/bashclub_zsync
|
rm -f /etc/logrotate.d/bashclub_zsync
|
||||||
fi
|
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
|
chown root:root /etc/logrotate.d/bashclub-zsync
|
||||||
chmod 644 /etc/logrotate.d/bashclub-zsync
|
chmod 644 /etc/logrotate.d/bashclub-zsync
|
||||||
|
@ -1 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -f /etc/bashclub/zsync.conf ]; then
|
||||||
|
mv /etc/bashclub/zsync.conf.backup_$(date +%Y-%m-%d)
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user