Merge remote-tracking branch 'limetech/master'

This commit is contained in:
bergware
2016-08-18 21:04:47 +02:00
3 changed files with 17 additions and 5 deletions

View File

@@ -778,7 +778,19 @@ class DockerClient {
global $dockerManPaths;
// Purge cached container information
$info = DockerUtil::loadJSON($dockerManPaths['webui-info']);
if (isset($info[$id])) unset($info[$id]);
if (isset($info[$id])) {
if (isset($info[$id]['icon'])) {
$iconRam = '/usr/local/emhttp'.$info[$id]['icon'];
$iconFlash = str_replace($dockerManPaths['images-ram'], $dockerManPaths['images-storage'], $iconRam);
if (is_file($iconRam)) {
unlink($iconRam);
}
if (is_file($iconFlash)) {
unlink($iconFlash);
}
}
unset($info[$id]);
}
DockerUtil::saveJSON($dockerManPaths['webui-info'], $info);
// Attempt to remove container
$this->getDockerJSON("/containers/${id}?force=1", "DELETE", $code);

View File

@@ -82,8 +82,8 @@ foreach ($allContainers as $ct) {
$status = ($ct["Running"]) ? "started" : "stopped";
$Icon = $info['icon'];
if ( $Icon == "#" ){
$Icon = "/plugins/dynamix.docker.manager/assets/images/question.png";
if (!$Icon) {
$Icon = "/plugins/dynamix.docker.manager/images/question.png";
}
print "

View File

@@ -3,8 +3,8 @@
<!DOCTYPE PLUGIN [
<!ENTITY name "dynamix">
<!ENTITY author "Bergware">
<!ENTITY version "2016.07.27"> <!-- Intended new version of Dynamix webGUI -->
<!ENTITY unRAID "6.2.0-rc3"> <!-- Change to new unRAID version when issued together -->
<!ENTITY version "2016.08.18"> <!-- Intended new version of Dynamix webGUI -->
<!ENTITY unRAID "6.2.0-rc4"> <!-- Change to new unRAID version when issued together -->
<!ENTITY pluginURL "https://raw.github.com/limetech/&name;-6.2/master/plugins/&name;/&name;.plg">
]>