autoenable service in .deb installation

This commit is contained in:
fram3d 2023-08-24 01:58:15 +02:00
parent 359a20ea66
commit 41553b2d74
Signed by: fram3d
GPG Key ID: 938920E709EEA32A
3 changed files with 7 additions and 1 deletions

View File

@ -4,7 +4,7 @@ Priority: optional
Architecture: all Architecture: all
Essential: no Essential: no
Installed-Size: 2000 Installed-Size: 2000
Depends: python3-flask, python3-ldap3 Depends: python3-flask, python3-ldap3, gunicorn
Homepage: https://gitea.dmz.rs/fram3d/luser Homepage: https://gitea.dmz.rs/fram3d/luser
Maintainer: fram3d <fram3d@dmz.rs> Maintainer: fram3d <fram3d@dmz.rs>
Description: Web app that allows users to add,remove and change passwords in LDAP system Description: Web app that allows users to add,remove and change passwords in LDAP system

View File

@ -0,0 +1,3 @@
#!/bin/sh
/usr/bin/systemctl enable luser.service
/sbin/service luser start

3
build-deb/luser/DEBIAN/prerm Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
/sbin/service luser stop
/usr/bin/systemdctl disable luser.service