Skip to content

Commit

Permalink
Avoid lost configuration on NC apache restart
Browse files Browse the repository at this point in the history
  • Loading branch information
tsdicloud committed Aug 21, 2023
1 parent c2ec76b commit f36b9e9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .devcontainer/lock.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php
$CONFIG = array (
'config_is_read_only' => true,
);
1 change: 0 additions & 1 deletion .devcontainer/nmc.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
'htaccess.RewriteBase' => '/',
'default_language' => 'de_DE',
'integrity.check.disabled' => true, // not recommended for prod, but for customisation
// 'config_is_read_only' => true,
'auth.authtoken.v1.disabled' => true,
'sharing.force_share_accept' => true,
'status-email-message-provider' => '\\OCA\\EmailTemplateExample\\MessageProvider',
Expand Down
8 changes: 7 additions & 1 deletion .devcontainer/nmcsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,10 @@ sudo -u ${APACHE_RUN_USER} php occ config:app:set theming iOSClientUrl --value \

# enable/disable apps
sudo -u ${APACHE_RUN_USER} php occ app:enable nmctheme
sudo -u ${APACHE_RUN_USER} php occ app:disable dashboard # may remove as soon as dashboard CR is implemented
sudo -u ${APACHE_RUN_USER} php occ app:disable dashboard # may remove as soon as dashboard CR is implemented

# there are side effects when using devcontainer and
# doing the main settings via webapp. For the moment, the best
# workaround is to lock config and avoid overwrite by nextcloud
# esp. on container rebuild
cp .devcontainer/lock.config.php config/lock.config.php

0 comments on commit f36b9e9

Please sign in to comment.