From dd5211e485e96f962281c9741be8e84d6671b5f4 Mon Sep 17 00:00:00 2001
From: Paul <paul@zom.bi>
Date: Mon, 17 Aug 2020 00:42:27 +0200
Subject: [PATCH] Debug

---
 bin/entrypoint.sh | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/bin/entrypoint.sh b/bin/entrypoint.sh
index f463097..893a05c 100755
--- a/bin/entrypoint.sh
+++ b/bin/entrypoint.sh
@@ -4,11 +4,8 @@ if [ ! -f /data/mumo.ini ]
 then
   cp /mumo/mumo.ini /data
 
-  #sed -i 's/mumo.log/\/dev\/null/' /data/mumo.ini
-  #sed -i 's/mumo.pid/\/tmp\/mumo.pid/' /data/mumo.ini
-  #sed -i 's/modules-enabled\//\/data\/modules-enabled\//' /data/mumo.ini
-
   chmod a+rw /data/mumo.ini
+  cp -r /mumo/modules /data
   cp -r /mumo/modules-available /data
   mkdir -p /data/modules-enabled
 fi
@@ -16,11 +13,10 @@ fi
 # Mumo apparently refuses to read config from mounted dirs,
 # so we copy them ...
 cp -r /data/mumo.ini /mumo
-cp -r /data/modules-available /mumo
 cp -r /data/modules-enabled /mumo
+cp -r /data/modules /mumo
 
 # make sure the data dir is writable
-chown mumo:mumo /data -R
+chown mumo:mumo /mumo -R
 
-#exec su mumo -c "python3 /mumo/mumo.py"
-exec python3 /mumo/mumo.py
+exec su mumo -c "python3 /mumo/mumo.py"