From 2993516464f61731346b082cd6bd32a4b4ebbf78 Mon Sep 17 00:00:00 2001 From: Glutamat42 Date: Sun, 15 Dec 2024 02:47:19 +0100 Subject: [PATCH] make config.php writeable during adler setup --- opt/adler/entrypoint_adler.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opt/adler/entrypoint_adler.sh b/opt/adler/entrypoint_adler.sh index 235ab38..b0f1129 100755 --- a/opt/adler/entrypoint_adler.sh +++ b/opt/adler/entrypoint_adler.sh @@ -13,7 +13,7 @@ # inject adler setup script if ! grep "/opt/adler/setup.sh" /opt/bitnami/scripts/moodle/entrypoint.sh > /dev/null ; then echo "inject adler setup script" - sed -i '/^exec "$@".*/i echo "starting adler setup script" && su daemon -s /bin/bash -c "/opt/adler/setup.sh"' /opt/bitnami/scripts/moodle/entrypoint.sh + sed -i '/^exec "$@".*/i echo "starting adler setup script" && chown daemon /bitnami/moodle/config.php && su daemon -s /bin/bash -c "/opt/adler/setup.sh" && chown root /bitnami/moodle/config.php' /opt/bitnami/scripts/moodle/entrypoint.sh fi