Skip to content

Commit

Permalink
[ITSA-706] Ensure Nextcloud Does Not Attempt Write to Read-only Config
Browse files Browse the repository at this point in the history
It's looking like we can't drive the read-only status of the Nextcloud
config volume off of a ConfigMap, so let's allow admins to make the
config read-only just by mounting it that way instead of having to
set the environment variable AND mount as read-only.
  • Loading branch information
Guy Elsmore-Paddock committed Mar 5, 2022
1 parent 30d867f commit 5eb117b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/nextcloud-common/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ deploy_nextcloud_release() {
cp -v /usr/src/nextcloud/config/*.config.php /var/www/html/config/
echo ""
else
# Force environment variable to `true` in case it was not set but
# config is not readable.
export NEXTCLOUD_CONFIG_READ_ONLY="true"

echo "'config' directory is not writable."
echo "Configuration snippets will not be synced."
echo ""
Expand Down

0 comments on commit 5eb117b

Please sign in to comment.