move cron file creation in postinst to avoid overwrite in case of customisation
This commit is contained in:
parent
a64121561b
commit
5dbdb4475c
@ -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/
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user