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

View File

@ -21,7 +21,6 @@ mkdir -p ./builddir/etc/cron.d/
rsync -aP --exclude "deb/" --exclude "doc/" --exclude "rpm/" --exclude ".git" ../ ./builddir/opt/tisbackup
rsync -aP ../scripts/tisbackup_gui.service ./builddir/usr/lib/systemd/system/
rsync -aP ../scripts/tisbackup_huey.service ./builddir/usr/lib/systemd/system/
rsync -aP ../samples/tisbackup.cron ./builddir/etc/cron.d/tisbackup
rsync -aP ../samples/tisbackup_gui.ini ./builddir/etc/tis
rsync -aP ../samples/tisbackup-config.ini.sample ./builddir/etc/tis/tisbackup-config.ini.sample
rsync -aP ../lib/huey/bin/huey_consumer.py ./builddir/opt/tisbackup/

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