Use absolute path in docker call

This commit is contained in:
bergware
2018-03-23 12:52:07 +01:00
parent 1b99f04f01
commit 63356dbf52
2 changed files with 2 additions and 2 deletions

View File

@@ -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 exec("timeout 20 docker $cmd 2>/dev/null",$var);
return exec("timeout 20 /usr/bin/docker $cmd 2>/dev/null",$var);
}
# Docker configuration file - guaranteed to exist