fixed errors delete files update manager open and metaconsole

Former-commit-id: 1ebff30c092290b3e65e639d94c6920afed960c0
This commit is contained in:
Daniel Barbero Martin 2019-03-20 13:35:24 +01:00
parent d5108efb0d
commit daf72a4bac
4 changed files with 16 additions and 4 deletions

View File

View File

@ -0,0 +1,3 @@
/godmode/servers/recorn_script.php
/godmode/servers/manage_recontask_form.php
/godmode/servers/manage_recontask.php

View File

@ -260,8 +260,15 @@ if ($install_package) {
return; return;
} }
update_manager_enterprise_set_version($version); enterprise_hook(
db_pandora_audit('Update '.get_product_name(), "Update version: $version of ".get_product_name().' by '.$config['id_user']); 'update_manager_enterprise_set_version',
[$version]
);
db_pandora_audit(
'Update '.get_product_name(),
"Update version: $version of ".get_product_name().' by '.$config['id_user']
);
$return['status'] = 'success'; $return['status'] = 'success';
echo json_encode($return); echo json_encode($return);

View File

@ -1284,9 +1284,11 @@ function check_install_package(package, homeurl) {
check_install_package(package, homeurl); check_install_package(package, homeurl);
} }
if (!isInstalling) {
//Check if exist remove files. //Check if exist remove files.
delete_desired_files(homeurl); delete_desired_files(homeurl);
} }
}
}); });
} }