Skip to content

Commit

Permalink
Update install.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Sekiro-kost committed Aug 21, 2024
1 parent dcc618b commit a80708c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin_info/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,14 @@ function luna_update() {
$eqLogic->setIsEnable(1);
$eqLogic->save();
}else{
$cmdsToRemove = array('ssid2', 'isconnect2', 'connect2', 'disconnect2', 'wifiip2');
foreach($cmdsToRemove as $logical){
$cmd = $eqLogic->getCmd(null, $logical);
if(is_object($cmd)){
$cmd->remove();
}
}
$eqLogic->save(true);
}
foreach (eqLogic::byType('luna') as $luna) {
$luna->save();
Expand Down

0 comments on commit a80708c

Please sign in to comment.