add running of init_db.py after installation
This commit is contained in:
parent
d804f7ad53
commit
094aa13397
@ -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
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/bin/sh
|
||||
/usr/bin/systemctl enable flaskapp.service
|
||||
/var/flaskapp/init_db.py
|
||||
/sbin/service flaskapp start
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
/sbin/service flaskapp stop
|
||||
/usr/bin/systemdctl disable flaskapp.service
|
||||
/usr/bin/systemctl disable flaskapp.service
|
||||
|
Loading…
Reference in New Issue
Block a user