postinst - fixed paths and permissions

This commit is contained in:
Oscar Krause 2022-12-28 07:14:24 +01:00
parent 63670f52e8
commit a08261f7cd
1 changed files with 4 additions and 2 deletions

View File

@ -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 <<EOF
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #