From 05c3a8d13a474c457798b0d5139b323a0d3e8df8 Mon Sep 17 00:00:00 2001
From: Griefed <griefed@griefed.de>
Date: Wed, 26 May 2021 18:13:32 +0200
Subject: [PATCH] fix: Add more logging to determine whether scripts work as
 intended

---
 root/etc/cont-init.d/30-install | 2 ++
 root/etc/cont-init.d/40-config  | 6 ++++++
 2 files changed, 8 insertions(+)

diff --git a/root/etc/cont-init.d/30-install b/root/etc/cont-init.d/30-install
index 64de8ea..f871dbc 100644
--- a/root/etc/cont-init.d/30-install
+++ b/root/etc/cont-init.d/30-install
@@ -19,6 +19,8 @@ if [ ! -f /config/www/sui.lock ]; then
     /config/www/
   rm -Rf /tmp/sui
   touch /config/www/sui.lock
+else
+  echo "**** lock-file found. Skipping installation... ****"
 fi
 
 # Permission Stuffs
diff --git a/root/etc/cont-init.d/40-config b/root/etc/cont-init.d/40-config
index 4074732..7255030 100644
--- a/root/etc/cont-init.d/40-config
+++ b/root/etc/cont-init.d/40-config
@@ -7,6 +7,8 @@ if [ ! -f /config/www/apps.json ]; then
   sed -i \
     "s/DOMAIN/${DOMAIN}/g" \
       /config/www/apps.json
+else
+  echo "**** apps.json-file found. Skipping installation... ****"
 fi
 
 
@@ -14,6 +16,8 @@ if [ ! -f /config/www/links.json ]; then
   cp -f \
     /defaults/links.json \
     /config/www/links.json
+else
+  echo "**** links.json-file found. Skipping installation... ****"
 fi
 
 
@@ -24,6 +28,8 @@ if [ ! -f /config/www/index.html ]; then
   sed -i \
     "s/PROTOCOL/${PROTOCOL}/g" \
       /config/www/index.html
+else
+  echo "**** index.html-file found. Skipping installation... ****"
 fi
 
 # Permissions Stuffs
-- 
GitLab