Improve ImunifyAV installation with better progress display

Changes:
- Show 'please wait' message for long installation
- Display installation progress from deployment script
- Clean up any existing deployment script first
- Show relevant output: Installing/Installed/Complete/Error
- Remove suppression of all output

This should make ImunifyAV installation more visible and debuggable.
This commit is contained in:
cschantz
2025-11-11 21:19:14 -05:00
parent 9290c5c4f0
commit 9c4218cb1c
+16 -11
View File
@@ -221,23 +221,28 @@ install_all_scanners() {
# Install ImunifyAV (FREE version)
if ! is_imunify_installed; then
echo -e "${CYAN}[3/3] Installing ImunifyAV (FREE)...${NC}"
echo " This may take several minutes - please wait..."
# Try cPanel method first
if command -v yum &>/dev/null && [ -f "/usr/local/cpanel/cpanel" ]; then
yum install -y imunify-antivirus imunify-antivirus-cpanel &>/dev/null
# Use deployment script method (most reliable)
cd /tmp
if [ -f "imav-deploy.sh" ]; then
rm -f imav-deploy.sh
fi
# Enable cPanel UI plugin
wget -q https://repo.imunify360.cloudlinux.com/defence360/imav-deploy.sh
if [ -f imav-deploy.sh ]; then
# Run deployment script with progress indicators
bash imav-deploy.sh 2>&1 | grep -E "Installing|Installed|Complete|Error|Failed" || bash imav-deploy.sh
rm -f imav-deploy.sh
# Enable cPanel UI plugin if installed
if [ -f "/opt/alt/python35/share/imunify360/scripts/av-userside-plugin.sh" ]; then
echo " → Enabling cPanel UI plugin..."
/opt/alt/python35/share/imunify360/scripts/av-userside-plugin.sh &>/dev/null
fi
else
# Fallback to script method
cd /tmp
wget -q https://repo.imunify360.cloudlinux.com/defence360/imav-deploy.sh
if [ -f imav-deploy.sh ]; then
bash imav-deploy.sh &>/dev/null
rm -f imav-deploy.sh
fi
echo -e "${RED} Failed to download installation script${NC}"
fi
if is_imunify_installed; then