Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ENVIRONMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
ownCloud admin password.
- `OWNCLOUD_ADMIN_USERNAME=admin` \
ownCloud admin username.
- `OWNCLOUD_ALLOW_SUBADMINS=` \
Enable or disable the subadmin (group admin) feature. Disabled by default in ownCloud core (see [documentation](https://doc.owncloud.com/server/latest/admin_manual/configuration/server/config_sample_php_parameters.html)).
- `OWNCLOUD_ALLOW_USER_TO_CHANGE_DISPLAY_NAME=` \
Allow or disallow users to change their display names (see [documentation](https://doc.owncloud.com/server/latest/admin_manual/configuration/server/config_sample_php_parameters.html#allow-or-disallow-users-to-change-their-display-names)).
- `OWNCLOUD_ALLOW_USER_TO_CHANGE_MAIL_ADDRESS=` \
Expand Down
4 changes: 4 additions & 0 deletions v24.04/overlay/etc/templates/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ function getConfigFromEnv() {
$config['allow_user_to_change_mail_address'] = getenv('OWNCLOUD_ALLOW_USER_TO_CHANGE_MAIL_ADDRESS') === 'true';
}

if (getenv('OWNCLOUD_ALLOW_SUBADMINS') != '') {
$config['allow_subadmins'] = getenv('OWNCLOUD_ALLOW_SUBADMINS') === 'true';
}

if (getenv('OWNCLOUD_STRICT_LOGIN_ENFORCED') != '') {
$config['strict_login_enforced'] = getenv('OWNCLOUD_STRICT_LOGIN_ENFORCED') === 'true';
}
Expand Down