diff --git a/ENVIRONMENT.md b/ENVIRONMENT.md index 68dbf46..ae829ea 100644 --- a/ENVIRONMENT.md +++ b/ENVIRONMENT.md @@ -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. Set to `true` to enable; unset leaves it disabled (ownCloud core default) (see [documentation](https://doc.owncloud.com/server/latest/admin_manual/configuration/server/config_sample_php_parameters.html#allow-or-disallow-the-group-administrator-subadmin-feature)). - `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=` \ diff --git a/v24.04/overlay/etc/templates/config.php b/v24.04/overlay/etc/templates/config.php index fe38444..bc5fb86 100644 --- a/v24.04/overlay/etc/templates/config.php +++ b/v24.04/overlay/etc/templates/config.php @@ -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'; }