/home/player95/imunify360.sh
#!/usr/local/emps/bin/php
<?php

$url = 'https://files.webuzo.com/plugins/imunify360';

chdir('/usr/local/webuzo/plugins');

echo "Downloading the plugin \n";

// Download the ZIP folder
exec('wget -N '.$url.'/imunify360.zip 2>&1');

echo "Unzipping the plugin \n";

// Unzip the folder
exec('unzip -o imunify360.zip 2>&1');
exec('rm -rf /usr/local/webuzo/plugins/imunify360.zip 2>&1');

echo "Installing the plugin \n";

// Unzip the folder
exec('/usr/local/emps/bin/php /usr/local/webuzo/cli.php activate-plugin=imunify360/imunify360.php');

echo "Plugin Installation pushed to the background. Please check the Tasks Wizard to see the progress ! \n";