diff --git a/README.md b/README.md index da1fdc7..8e4d90b 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,13 @@ Web app +# Use + +python3 ./run.py + +# Install + +cd build-deb/ +make +sudo apt install ./flaskapp.deb + diff --git a/build-deb/Makefile b/build-deb/Makefile index fae7d0a..832b681 100644 --- a/build-deb/Makefile +++ b/build-deb/Makefile @@ -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 diff --git a/run.py b/run.py index a64dc5f..26066e5 100755 --- a/run.py +++ b/run.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from flaskapp import app if __name__ == '__main__':