From 478ca0ab63430b4d3d7945195c137d5a61cedd7f Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Fri, 30 Dec 2022 07:02:50 +0100 Subject: [PATCH] added some comments --- .DEBIAN/postinst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.DEBIAN/postinst b/.DEBIAN/postinst index f0d9bdc..5680ac1 100644 --- a/.DEBIAN/postinst +++ b/.DEBIAN/postinst @@ -6,6 +6,7 @@ CONFIG_DIR=/etc/fastapi-dls echo "> Create config directory ..." 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 ..." cat </etc/systemd/system/fastapi-dls.service [Unit] @@ -37,6 +38,7 @@ EOF 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 echo "> Writing initial config ..." touch $CONFIG_DIR/env