Disallow creation of local external storage in some cases

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2022-03-14 15:35:37 +01:00
parent cd00e5af83
commit 0670c7cedf
3 changed files with 11 additions and 1 deletions

View file

@ -122,7 +122,8 @@
"OVERWRITEPROTOCOL=https",
"TURN_SECRET=%TURN_SECRET%",
"SIGNALING_SECRET=%SIGNALING_SECRET%",
"AIO_URL=%AIO_URL%"
"AIO_URL=%AIO_URL%",
"NEXTCLOUD_MOUNT=%NEXTCLOUD_MOUNT%"
],
"maxShutdownTime": 10,
"restartPolicy": "unless-stopped"

View file

@ -216,6 +216,8 @@ class DockerActionManager
$replacements[1] = $this->configurationManager->GetSelectedRestoreTime();
} elseif ($out[1] === 'APACHE_PORT') {
$replacements[1] = $this->configurationManager->GetApachePort();
} elseif ($out[1] === 'NEXTCLOUD_MOUNT') {
$replacements[1] = $this->configurationManager->GetNextcloudMount();
} else {
$replacements[1] = $this->configurationManager->GetSecret($out[1]);
}