mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 18:48:49 -05:00
Docker minor code update
This commit is contained in:
@@ -15,10 +15,9 @@
|
||||
$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
||||
require_once "$docroot/plugins/dynamix.docker.manager/include/DockerClient.php";
|
||||
|
||||
$user_prefs = '/boot/config/plugins/dockerMan/userprefs.cfg';
|
||||
|
||||
$action = $_POST['action'];
|
||||
$status = $action=='start' ? 'exited' : 'running';
|
||||
$user_prefs = $dockerManPaths['user-prefs'];
|
||||
$action = $_POST['action'];
|
||||
$status = $action=='start' ? 'exited' : 'running';
|
||||
$containers = DockerUtil::docker("ps -a --filter status='$status' --format='{{.Names}}'",true);
|
||||
|
||||
if (file_exists($user_prefs)) {
|
||||
|
||||
Reference in New Issue
Block a user