add installation instructions,fix install scripts permissions and add shebang to run.py

This commit is contained in:
fram3d 2024-01-17 15:07:32 +01:00
parent fda6a996da
commit 5be06f2f7d
Signed by: fram3d
GPG Key ID: 938920E709EEA32A
3 changed files with 14 additions and 0 deletions

View File

@ -2,3 +2,13 @@
Web app
# Use
python3 ./run.py
# Install
cd build-deb/
make
sudo apt install ./flaskapp.deb

View File

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

1
run.py
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
from flaskapp import app
if __name__ == '__main__':