From a08261f7cd8ecb428b465cf5f500bef29f5d0322 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Wed, 28 Dec 2022 07:14:24 +0100 Subject: [PATCH] postinst - fixed paths and permissions --- DEBIAN/postinst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/DEBIAN/postinst b/DEBIAN/postinst index d1c43e4..14700be 100644 --- a/DEBIAN/postinst +++ b/DEBIAN/postinst @@ -20,9 +20,9 @@ EnvironmentFile=$CONFIG_DIR/env ExecStart=uvicorn main:app \\ --env-file /etc/fastapi-dls/env \\ --host \$DLS_URL --port \$DLS_PORT \\ - --app-dir /usr/share/fastapi-dls/app \\ + --app-dir /usr/share/fastapi-dls \\ --ssl-keyfile /etc/fastapi-dls/webserver.key \\ - --ssl-certfile /opt/fastapi-dls/webserver.crt \\ + --ssl-certfile /etc/fastapi-dls/webserver.crt \\ --proxy-headers Restart=always KillSignal=SIGQUIT @@ -74,6 +74,8 @@ if [[ -f $CONFIG_DIR/webserver.key ]]; then fi fi +chown -R www-data:www-data $CONFIG_DIR/* + cat <