Support in previous apps plugins-error
This commit is contained in:
parent
5312f2bb72
commit
8a7377eabf
BIN
archive/community.applications-2021.03.11-x86_64-1.txz
Normal file
BIN
archive/community.applications-2021.03.11-x86_64-1.txz
Normal file
Binary file not shown.
@ -1121,9 +1121,10 @@ if ( $caSettings['dockerRunning'] ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$all_plugs = glob("/boot/config/plugins-removed/*.plg");
|
$all_plugs = array_merge(glob("/boot/config/plugins-error/*.plg"),glob("/boot/config/plugins-removed/*.plg"));
|
||||||
|
file_put_contents("/tmp/blah",print_r($all_plugs,true));
|
||||||
foreach ($all_plugs as $oldplug) {
|
foreach ($all_plugs as $oldplug) {
|
||||||
|
|
||||||
foreach ($file as $template) {
|
foreach ($file as $template) {
|
||||||
if ( basename($oldplug) == basename($template['Repository']) ) {
|
if ( basename($oldplug) == basename($template['Repository']) ) {
|
||||||
if ( ! file_exists("/boot/config/plugins/".basename($oldplug)) ) {
|
if ( ! file_exists("/boot/config/plugins/".basename($oldplug)) ) {
|
||||||
@ -1134,7 +1135,9 @@ if ( $caSettings['dockerRunning'] ) {
|
|||||||
}
|
}
|
||||||
$template['Removable'] = true;
|
$template['Removable'] = true;
|
||||||
$template['InstallPath'] = $oldplug;
|
$template['InstallPath'] = $oldplug;
|
||||||
|
if ( $alreadySeen[$oldPlugURL] )
|
||||||
|
continue;
|
||||||
|
$alreadySeen[$oldPlugURL] = true;
|
||||||
$displayed[] = $template;
|
$displayed[] = $template;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user