forked from extern/zsync
Fix conf backup
This commit is contained in:
parent
988da0f5d1
commit
570e937df8
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ -f /etc/bashclub/zsync.conf ]; then
|
if [ -f /etc/bashclub/zsync.conf ] && [ ! -f /etc/bashclub/zsync.conf.backup_$(date +%Y-%m-%d) ] ; then
|
||||||
cp /etc/bashclub/zsync.conf /etc/bashclub/zsync.conf.backup_$(date +%Y-%m-%d)
|
cp /etc/bashclub/zsync.conf /etc/bashclub/zsync.conf.backup_$(date +%Y-%m-%d)
|
||||||
fi
|
fi
|
||||||
|
@ -10,3 +10,7 @@ if ! dpkg -l bashclub-zsync > /dev/null 2>&1; then
|
|||||||
chmod -x ${zsync}.legacy
|
chmod -x ${zsync}.legacy
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f /etc/bashclub/zsync.conf ] && [ ! -f /etc/bashclub/zsync.conf.backup_$(date +%Y-%m-%d) ] ; then
|
||||||
|
cp /etc/bashclub/zsync.conf /etc/bashclub/zsync.conf.backup_$(date +%Y-%m-%d)
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user