diff --git a/build-deb/donationcalc/DEBIAN/control b/build-deb/donationcalc/DEBIAN/control index 710523d..915f4d4 100644 --- a/build-deb/donationcalc/DEBIAN/control +++ b/build-deb/donationcalc/DEBIAN/control @@ -4,7 +4,7 @@ Priority: optional Architecture: all Essential: no Installed-Size: 2000 -Depends: python3-flask +Depends: python3-flask gunicorn Homepage: https://gitea.dmz.rs/fram3d/donationcalc Maintainer: fram3d Description: Web app that tracks donations and notifies users via email diff --git a/build-deb/donationcalc/DEBIAN/postinst b/build-deb/donationcalc/DEBIAN/postinst index 97c33ce..4c88396 100755 --- a/build-deb/donationcalc/DEBIAN/postinst +++ b/build-deb/donationcalc/DEBIAN/postinst @@ -5,3 +5,5 @@ /usr/bin/echo "0 0 1 * * /usr/bin/python3 /var/donationcalc/run.py -r" >> /tmp/donationcalccrontab.tmp /usr/bin/crontab /tmp/donationcalccrontab.tmp /usr/bin/rm /tmp/donationcalccrontab.tmp +/usr/bin/systemctl enable donationcalc.service +/sbin/service donationcalc start diff --git a/build-deb/donationcalc/DEBIAN/prerm b/build-deb/donationcalc/DEBIAN/prerm index 5644be7..1f6fd6b 100755 --- a/build-deb/donationcalc/DEBIAN/prerm +++ b/build-deb/donationcalc/DEBIAN/prerm @@ -5,3 +5,5 @@ /usr/bin/grep -v "0 0 1 * * /usr/bin/python3 /var/donationcalc/run.py -r" /tmp/donationcalccrontab.tmp >> /tmp/donationcalccrontab.tmp1 /usr/bin/crontab /tmp/donationcalccrontab.tmp1 /usr/bin/rm /tmp/donationcalccrontab.tmp /tmp/donationcalccrontab.tmp1 +/sbin/service donationcalc stop +/usr/bin/systemdctl disable donationcalc.service