diff --git a/build-deb/luser/DEBIAN/control b/build-deb/luser/DEBIAN/control index 2605ed6..ed17d02 100644 --- a/build-deb/luser/DEBIAN/control +++ b/build-deb/luser/DEBIAN/control @@ -4,7 +4,7 @@ Priority: optional Architecture: all Essential: no Installed-Size: 2000 -Depends: python3-flask, python3-ldap3 +Depends: python3-flask, python3-ldap3, gunicorn Homepage: https://gitea.dmz.rs/fram3d/luser Maintainer: fram3d Description: Web app that allows users to add,remove and change passwords in LDAP system diff --git a/build-deb/luser/DEBIAN/postinst b/build-deb/luser/DEBIAN/postinst new file mode 100755 index 0000000..755f65a --- /dev/null +++ b/build-deb/luser/DEBIAN/postinst @@ -0,0 +1,3 @@ +#!/bin/sh +/usr/bin/systemctl enable luser.service +/sbin/service luser start diff --git a/build-deb/luser/DEBIAN/prerm b/build-deb/luser/DEBIAN/prerm new file mode 100755 index 0000000..3c44ee6 --- /dev/null +++ b/build-deb/luser/DEBIAN/prerm @@ -0,0 +1,3 @@ +#!/bin/sh +/sbin/service luser stop +/usr/bin/systemdctl disable luser.service