|
Server IP : 37.60.233.201 / Your IP : 216.73.217.47 Web Server : Apache System : Linux host.ivahost.com 4.18.0-553.107.1.lve.el8.x86_64 #1 SMP Tue Feb 24 21:12:31 UTC 2026 x86_64 User : dcaksa ( 1043) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0555) : /lib/dracut/../sysctl.d/../modprobe.d/../../bin/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
#!/bin/bash
# clwpos-erase Utility to uninstall Cloudlinux WP Optimization tool
#
# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2020 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT
yesno()
# $1 = Message prompt
# Returns ans=0 for no, ans=1 for yes
{
ans=2
while [ $ans -eq 2 ]
do
echo -n "Do you want to $1 (y/n)? " ; read reply
case "$reply" in
[yY][eE][sS]|[yY]) ans=1 ;;
[nN][oO]|[nN]) ans=0 ;;
*) echo "Please answer yes or no" ;;
esac
done
}
yesno 'disable and uninstall AccelerateWP for all domains ?'
if [ $ans -eq 0 ]; then
echo 'Cancel'
exit 1
fi
echo "Uninstalling AccelerateWP hooks..."
/usr/share/cloudlinux/wpos/wpos_hooks.py --uninstall
echo "Uninstalling AccelerateWP cache for all domains..."
/usr/bin/clwpos-admin uninstall-cache-for-all-domains
echo "Turning of AccelerateWP suites..."
/usr/bin/clwpos-admin set-suite \
--disallowed-for-all \
--suites accelerate_wp,accelerate_wp_premium,accelerate_wp_cdn,accelerate_wp_cdn_pro
echo "Removing WordPress SmartAdvice plugins"
cl-smart-advice wordpress-plugin-install
echo 'Stop AccelerateWP daemon...'
/usr/bin/clwpos-daemon stop --graceful