Skip to content

Commit

Permalink
make config.php writeable during adler setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Glutamat42 committed Dec 15, 2024
1 parent 36c2ce7 commit 2993516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opt/adler/entrypoint_adler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 2993516

Please sign in to comment.