mirror of
https://github.com/unraid/webgui.git
synced 2026-02-12 20:18:52 -06:00
Merge branch 'master' of https://github.com/bergware/webgui
This commit is contained in:
@@ -243,6 +243,10 @@ function xmlToCommand($xml, $create_paths=false) {
|
||||
$Variables[] = 'TZ="'.$var['timeZone'].'"';
|
||||
// Add HOST_OS variable
|
||||
$Variables[] = 'HOST_OS="Unraid"';
|
||||
// Add HOST_HOSTNAME variable
|
||||
$Variables[] = 'HOST_HOSTNAME="'.gethostname().'"';
|
||||
// Add HOST_CONTAINERNAME variable
|
||||
$Variables[] = 'HOST_CONTAINERNAME="'.$xml['Name'].'"';
|
||||
// Docker labels for WebUI and Icon
|
||||
$Labels[] = 'net.unraid.docker.managed=dockerman';
|
||||
if (strlen($xml['WebUI'])) $Labels[] = 'net.unraid.docker.webui='.escapeshellarg($xml['WebUI']);
|
||||
|
||||
Reference in New Issue
Block a user