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 <