handle symlink better

This commit is contained in:
Denis Cardon 2017-03-29 20:00:10 +02:00
parent aacd580f33
commit b78108a119
2 changed files with 4 additions and 2 deletions

View File

@ -6,7 +6,7 @@ rm -Rf builddir
mkdir builddir
mkdir builddir/DEBIAN
cp ./control ./builddir/DEBIAN
cp ./files/postinst ./builddir/DEBIAN
cp ./postinst ./builddir/DEBIAN
sed "s/VERSION/$VERSION/" -i ./builddir/DEBIAN/control

View File

@ -1,5 +1,7 @@
#!/bin/bash
systemctl enable tisbackup_huey
systemctl enable tisbackup_gui
ln -s /opt/tisbackup/tisbackup.py /usr/bin/tisbackup
if [ ! -f /usr/bin/tisbackup ]; then
ln -s /opt/tisbackup/tisbackup.py /usr/bin/tisbackup
fi