⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.72
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
var
/
lib
/
dpkg
/
info
/
View File Name :
imunify-ui-antivirus-plesk.postinst
#!/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