Docker code optimization

This commit is contained in:
bergware
2018-03-23 12:39:22 +01:00
parent 84674ba64e
commit 1b99f04f01
2 changed files with 3 additions and 3 deletions
@@ -32,7 +32,7 @@ if (!isset($eth0) && is_file("$docroot/state/network.ini")) extract(parse_ini_fi
# controlled docker execution
function docker($cmd, &$var=null) {
return $var===null ? exec("timeout 20 docker $cmd 2>/dev/null") : exec("timeout 20 docker $cmd 2>/dev/null",$var);
return exec("timeout 20 docker $cmd 2>/dev/null",$var);
}
# Docker configuration file - guaranteed to exist