Skip to content

Commit f36b9e9

Browse files
committed
Avoid lost configuration on NC apache restart
1 parent c2ec76b commit f36b9e9

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.devcontainer/lock.config.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
$CONFIG = array (
3+
'config_is_read_only' => true,
4+
);

.devcontainer/nmc.config.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
'htaccess.RewriteBase' => '/',
44
'default_language' => 'de_DE',
55
'integrity.check.disabled' => true, // not recommended for prod, but for customisation
6-
// 'config_is_read_only' => true,
76
'auth.authtoken.v1.disabled' => true,
87
'sharing.force_share_accept' => true,
98
'status-email-message-provider' => '\\OCA\\EmailTemplateExample\\MessageProvider',

.devcontainer/nmcsetup.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,10 @@ sudo -u ${APACHE_RUN_USER} php occ config:app:set theming iOSClientUrl --value \
3434

3535
# enable/disable apps
3636
sudo -u ${APACHE_RUN_USER} php occ app:enable nmctheme
37-
sudo -u ${APACHE_RUN_USER} php occ app:disable dashboard # may remove as soon as dashboard CR is implemented
37+
sudo -u ${APACHE_RUN_USER} php occ app:disable dashboard # may remove as soon as dashboard CR is implemented
38+
39+
# there are side effects when using devcontainer and
40+
# doing the main settings via webapp. For the moment, the best
41+
# workaround is to lock config and avoid overwrite by nextcloud
42+
# esp. on container rebuild
43+
cp .devcontainer/lock.config.php config/lock.config.php

0 commit comments

Comments
 (0)