This commit is contained in:
Oscar Krause 2022-12-27 22:18:02 +01:00
parent 9a0db3c18f
commit 18d6da8ebf
1 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,7 @@ NotifyAccess=all
[Install]
WantedBy=multi-user.target
EOF
CONFIG_DIR=/etc/fastapi-dls
@ -35,11 +36,12 @@ mkdir -p $CONFIG_DIR
echo "> Writing default config parameters ..."
touch $CONFIG_DIR/fastapi-dls.env
echo <<EOF >$CONFIG_DIR
echo <<EOF > $CONFIG_DIR/fastapi-dls.env
DLS_URL=127.0.0.1
DLS_PORT=443
LEASE_EXPIRE_DAYS=90
DATABASE=sqlite:////usr/share/fastapi-dls/db.sqlite
EOF
echo "> Create dls-instance keypair ..."
@ -84,4 +86,5 @@ cat <<EOF
# #
# #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
EOF