add deb files to gitignore and change permissions of install scripts

This commit is contained in:
fram3d 2024-01-17 15:35:47 +01:00
parent e5c424fff8
commit 8aa2675240
Signed by: fram3d
GPG Key ID: 938920E709EEA32A
6 changed files with 7 additions and 3 deletions

2
.gitignore vendored
View File

@ -234,3 +234,5 @@ tags
# End of https://www.toptal.com/developers/gitignore/api/python,flask,vim,visualstudiocode # End of https://www.toptal.com/developers/gitignore/api/python,flask,vim,visualstudiocode
# deb files
*.deb

View File

@ -7,11 +7,12 @@ man: man/taskmanager.1.md
deb: man ../requirments.txt ../run.py ../taskmanager ../LICENSE deb: man ../requirments.txt ../run.py ../taskmanager ../LICENSE
cp -r ../taskmanager/* taskmanager/var/taskmanager/taskmanager/ cp -r ../taskmanager/* taskmanager/var/taskmanager/taskmanager/
cp ../run.py taskmanager/var/taskmanager/ cp ../run.py taskmanager/var/taskmanager/
cp ../init_db.py taskmanager/var/taskmanager/
cp ../LICENSE taskmanager/var/taskmanager/ cp ../LICENSE taskmanager/var/taskmanager/
chmod -w taskmanager/DEBIAN/* chmod -w taskmanager/DEBIAN/*
chmod +w taskmanager/DEBIAN/control chmod +w taskmanager/DEBIAN/control
dpkg-deb --build taskmanager dpkg-deb --build taskmanager
chmod -w taskmanager/DEBIAN/* chmod +w taskmanager/DEBIAN/*
clean: clean:
rm -f taskmanager.deb rm -f taskmanager.deb
rm -f man/taskmanager.1 rm -f man/taskmanager.1

Binary file not shown.

View File

@ -8,4 +8,4 @@ Depends: gunicorn, python3-flask-sqlalchemy
Homepage: https://gitea.dmz.rs/Decentrala/taskmanager Homepage: https://gitea.dmz.rs/Decentrala/taskmanager
Maintainer: Decentrala <dmz@dmz.rs> Maintainer: Decentrala <dmz@dmz.rs>
Description: Web app Description: Web app
Version: 1.0.0 Version: 1.0.1

View File

@ -1,3 +1,4 @@
#!/bin/sh #!/bin/sh
/usr/bin/systemctl enable taskmanager.service /usr/bin/systemctl enable taskmanager.service
/var/taskmanager/init_db.py
/sbin/service taskmanager start /sbin/service taskmanager start

View File

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