added some comments
This commit is contained in:
parent
3d83e533da
commit
478ca0ab63
@ -6,6 +6,7 @@ CONFIG_DIR=/etc/fastapi-dls
|
|||||||
echo "> Create config directory ..."
|
echo "> Create config directory ..."
|
||||||
mkdir -p $CONFIG_DIR
|
mkdir -p $CONFIG_DIR
|
||||||
|
|
||||||
|
# normally we would define services in `conffiles` and as separate file, but we like to keep thinks simple.
|
||||||
echo "> Install service ..."
|
echo "> Install service ..."
|
||||||
cat <<EOF >/etc/systemd/system/fastapi-dls.service
|
cat <<EOF >/etc/systemd/system/fastapi-dls.service
|
||||||
[Unit]
|
[Unit]
|
||||||
@ -37,6 +38,7 @@ EOF
|
|||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
||||||
|
# normally we would define configfiles in `conffiles` and as separate file, but we like to keep thinks simple.
|
||||||
if [[ ! -f $CONFIG_DIR/env ]]; then
|
if [[ ! -f $CONFIG_DIR/env ]]; then
|
||||||
echo "> Writing initial config ..."
|
echo "> Writing initial config ..."
|
||||||
touch $CONFIG_DIR/env
|
touch $CONFIG_DIR/env
|
||||||
|
Loading…
Reference in New Issue
Block a user