mirror of
https://github.com/unraid/api.git
synced 2026-01-20 15:39:56 -06:00
fix(plg): ensure dynamix.cfg exists
This commit is contained in:
@@ -936,7 +936,9 @@ $var = (array)parse_ini_file('state/var.ini');
|
||||
$license_state = strtoupper(empty($var['regCheck']) ? $var['regTy'] : $var['regCheck']);
|
||||
$key_contents = str_replace(['+','/','='], ['-','_',''], trim(base64_encode(@file_get_contents($var['regFILE']))));
|
||||
|
||||
extract(parse_ini_file('/boot/config/plugins/dynamix/dynamix.cfg',true));
|
||||
if (file_exists('/boot/config/plugins/dynamix/dynamix.cfg')) {
|
||||
extract(parse_ini_file('/boot/config/plugins/dynamix/dynamix.cfg',true));
|
||||
}
|
||||
if (empty($remote)) {
|
||||
$remote = [
|
||||
"apikey" => "",
|
||||
|
||||
Reference in New Issue
Block a user