From e0d56e87f2a376ed550cbab5e64acf373258cc9b Mon Sep 17 00:00:00 2001
From: Griefed <griefed@griefed.de>
Date: Sun, 18 Oct 2020 00:34:19 +0200
Subject: [PATCH] Update 60-config

---
 root/etc/cont-init.d/60-config | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/root/etc/cont-init.d/60-config b/root/etc/cont-init.d/60-config
index 079ba5f..3681c2e 100644
--- a/root/etc/cont-init.d/60-config
+++ b/root/etc/cont-init.d/60-config
@@ -4,12 +4,6 @@
 ln -sf /data /app/ICEcoder/data
 ln -sf /plugins /app/ICEcoder/plugins
 
-# permissions
-chown -R abc:abc \
-  /config \
-  /data \
-  /plugins
-
 echo "[cont-init.d] Checking for lock.file"
 # check for lock file to only run git operations once
 if [ ! -e /lock.file ]; then
@@ -31,12 +25,16 @@ else
   echo "Lock exists just starting ICEcoder"
 fi
 
+# make our folders
+mkdir -p \
+  /config/{log/ICEcoder,php,sess}
+
 # create lock file after first run
 touch /lock.file
 
 # copy php ini for user editing
 [[ ! -e "/config/php/php.ini" ]] && \
-cp /etc/php7/php.ini /config/php/php.ini
+    cp /etc/php7/php.ini /config/php/php.ini
 cp /config/php/php.ini /etc/php7/php.ini
 
 # permissions
@@ -46,6 +44,3 @@ chown -R abc:abc \
   /data \
   /config \
   /plugins
-# make our folders
-mkdir -p \
-  /config/{log/ICEcoder,php,sess}
-- 
GitLab