From 2af4b456b6bfa1395a6713f0c3ad4bde2f1a4600 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Wed, 28 Dec 2022 06:56:31 +0100 Subject: [PATCH] fixes --- DEBIAN/postinst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DEBIAN/postinst b/DEBIAN/postinst index ea81cfa..83e6ccd 100644 --- a/DEBIAN/postinst +++ b/DEBIAN/postinst @@ -10,8 +10,8 @@ After=network.target User=www-data Group=www-data AmbientCapabilities=CAP_NET_BIND_SERVICE -EnvironmentFile=/etc/fastapi-dls/env WorkingDirectory=/usr/share/fastapi-dls +EnvironmentFile=/etc/fastapi-dls/env ExecStart=uvicorn main:app \\ --env-file /etc/fastapi-dls/env \\ --host \$DLS_URL --port \$DLS_PORT \\ @@ -36,8 +36,8 @@ echo "> Create config directory ..." mkdir -p $CONFIG_DIR echo "> Writing default config parameters ..." -touch $CONFIG_DIR/fastapi-dls.env -cat < $CONFIG_DIR/fastapi-dls.env +touch $CONFIG_DIR/fastapi-dls/env +cat < $CONFIG_DIR/fastapi-dls/env DLS_URL=127.0.0.1 DLS_PORT=443 LEASE_EXPIRE_DAYS=90