only allow to set APACHE_ADDITIONAL_NETWORK via environmental variable and do not restore it on backup restore

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2026-01-30 09:20:00 +01:00
parent fcc4d8b185
commit 748b2cc73b
2 changed files with 9 additions and 6 deletions

View file

@ -263,11 +263,6 @@ class ConfigurationManager
set { $this->set('collabora_seccomp_disabled', $value); }
}
public string $apacheAdditionalNetwork {
get => $this->getEnvironmentalVariableOrConfig('APACHE_ADDITIONAL_NETWORK', 'apache_additional_network', '');
set { $this->set('apache_additional_network', $value); }
}
public bool $disableBackupSection {
get => $this->booleanize($this->getEnvironmentalVariableOrConfig('AIO_DISABLE_BACKUP_SECTION', 'disable_backup_section', ''));
set { $this->set('disable_backup_section', $value); }
@ -854,6 +849,14 @@ class ConfigurationManager
return false;
}
public function getApacheAdditionalNetwork() : string {
$network = getenv('APACHE_ADDITIONAL_NETWORK');
if (is_string($network)) {
return trim($network);
}
return '';
}
public function getNextcloudStartupApps() : string {
$apps = getenv('NEXTCLOUD_STARTUP_APPS');
if (is_string($apps)) {