diff --git a/CLManager/CageFS.py b/CLManager/CageFS.py index ee4991d6b..00ecfb0d8 100644 --- a/CLManager/CageFS.py +++ b/CLManager/CageFS.py @@ -164,13 +164,20 @@ pattern_to_watch = ^/home/.+?/(public_html|public_ftp|private_html)(/.*)?$ ## + command = 'pkill -f "bash i360deploy.sh"' + ServerStatusUtil.executioner(command, statusFile) + if not os.path.exists('i360deploy.sh'): command = 'wget https://repo.imunify360.cloudlinux.com/defence360/i360deploy.sh' ServerStatusUtil.executioner(command, statusFile) - command = 'bash i360deploy.sh --key %s --beta' % (key) + command = 'bash i360deploy.sh --uninstall --yes' ServerStatusUtil.executioner(command, statusFile) + command = 'bash i360deploy.sh --key %s --yes' % (key) + ServerStatusUtil.executioner(command, statusFile) + + logging.CyberCPLogFileWriter.statusWriter(ServerStatusUtil.lswsInstallStatusPath, "Imunify reinstalled..\n", 1) diff --git a/firewall/templates/firewall/imunify.html b/firewall/templates/firewall/imunify.html index 68fad309b..bb30494e3 100755 --- a/firewall/templates/firewall/imunify.html +++ b/firewall/templates/firewall/imunify.html @@ -11,10 +11,10 @@
{% trans "Access Imunify" %}
{% trans "Imunify is now integrated via their new API. You can manage Imunify by clicking below. You can use your server root credentials to access Imunify." %}
+{% trans "Imunify is now integrated via their new API. You can manage Imunify by clicking below. You can use your server root credentials to access Imunify. Login details for Imunify360 is your server root and its password." %}
+ {% trans "If for some reason Imunify360 is not working, you can re-install it using the form below." %}
+wget https://repo.imunify360.cloudlinux.com/defence360/i360deploy.sh -O
+ i360deploy.sh
bash i360deploy.sh --key YOUR_KEY --yes
If you can still not access Imunify360 after re-installation, just run
+ the above commands on your server terminal, make sure to replace YOUR_KEY
+ with your
+ Imunify360 Key.