| Server IP : 198.71.59.75 / Your IP : 216.73.216.240 Web Server : nginx/1.30.2 System : Linux elegant-dhawan.198-71-59-75.plesk.page 5.15.0-105-generic #115-Ubuntu SMP Mon Apr 15 09:52:04 UTC 2024 x86_64 User : realtyna_guys ( 10000) PHP Version : 8.2.31 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/lib/dpkg/info/ |
Upload File : |
#!/bin/bash
# postinst script for imunify-ui-antivirus-plesk
set -e
case "$1" in
configure)
if [ ! -d /usr/local/psa/admin/ ] ; then
echo "No Plesk detected. Skipping setup."
exit 0
fi
/usr/share/av-userside-plugin.sh -u
if [ ! -d /usr/local/psa/admin/htdocs/modules/imunify360/ ] ; then
echo "There is no Imunify directory in Plesk. The deploy script will create it."
exit 0
fi
sed -i -E "s/IMUNIFY_PACKAGE = '360'/IMUNIFY_PACKAGE = 'AV'/" /usr/local/psa/admin/htdocs/modules/imunify360/assets/js/config.js
# Temporary directory for storing plugin files
if [ -d "/usr/share/imunify360/ui-plugin/" ]; then
rm -rf "/usr/share/imunify360/ui-plugin/"
fi
mkdir -p "/usr/share/imunify360/ui-plugin/"
unzip -o "/var/imunify360/plesk/imunify-plugin.zip" -d "/usr/share/imunify360/ui-plugin/" > /dev/null
# update i360deploy-ui.sh
mv "/usr/share/imunify360/ui-plugin/htdocs/i360deploy-ui.sh" "/usr/local/psa/admin/htdocs/modules/imunify360/"
# install UI static
cd /usr/local/psa/admin/htdocs/modules/imunify360
chmod +x i360deploy-ui.sh
./i360deploy-ui.sh --module core
cd -
rm -rf /usr/share/imunify360/ui-plugin/
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
exit 0