add running of init_db.py after installation

This commit is contained in:
fram3d 2024-01-17 15:29:28 +01:00
parent d804f7ad53
commit 094aa13397
Signed by: fram3d
GPG Key ID: 938920E709EEA32A
3 changed files with 4 additions and 2 deletions

View File

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

View File

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

View File

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