move cron file creation in postinst to avoid overwrite in case of customisation

This commit is contained in:
Denis Cardon
2020-12-09 17:03:59 +01:00
parent a64121561b
commit 5dbdb4475c
2 changed files with 5 additions and 1 deletions
+5
View File
@@ -5,3 +5,8 @@ systemctl enable tisbackup_gui
if [ ! -f /usr/bin/tisbackup ]; then
ln -s /opt/tisbackup/tisbackup.py /usr/bin/tisbackup
fi
if [ ! -f /etc/cron.d/tisbackup ]; then
cp /opt/tisbackup/samples/tisbackup.cron /etc/cron.d/tisbackup
fi