From 5be06f2f7dfc1eb1d695fbe8324e017e275690ef Mon Sep 17 00:00:00 2001 From: fram3d Date: Wed, 17 Jan 2024 15:07:32 +0100 Subject: [PATCH] add installation instructions,fix install scripts permissions and add shebang to run.py --- README.md | 10 ++++++++++ build-deb/Makefile | 3 +++ run.py | 1 + 3 files changed, 14 insertions(+) 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__':