TISbackup/deb/postinst
fggp fb641fb21c huey 0.4.9 and redis are installed from postinst
This is to be sure that the binaries are put in /usr/local/bin
2022-12-26 14:02:49 +01:00

18 lines
424 B
Bash
Executable File

#!/bin/bash
pip3 install huey=0.4.9
pip3 install redis
systemctl enable tisbackup_huey
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
find /opt/tisbackup -name "*.pyc" -exec rm -rf {} \;
python3 -m compileall /opt/tisbackup/