Server : Apache System : Linux indy02.toastserver.com 3.10.0-962.3.2.lve1.5.85.el7.x86_64 #1 SMP Thu Apr 18 15:18:36 UTC 2024 x86_64 User : palandch ( 1163) PHP Version : 7.1.33 Disable Function : NONE Directory : /home/palandch/Cloudflare-CPanel-7.0.1/ |
#!/bin/bash # # Uninstall script for CloudFlare cPanel plugin # INSTALL_DIR="/usr/local/cpanel" # Get PHP Version CPANELSUPPORTEDPHPPATH=`ls -al $INSTALL_DIR/3rdparty/bin/php | awk '{print $11}'` PHPVERSION=`echo $CPANELSUPPORTEDPHPPATH | rev | cut -d '/' -f 3 | rev` rm -rf $INSTALL_DIR/base/frontend/paper_lantern/cloudflare rm -rf $INSTALL_DIR/bin/admin/CloudFlare rm -rf $INSTALL_DIR/3rdparty/php/$PHPVERSION/lib/php/cloudflare rm -rf $INSTALL_DIR/Cpanel/API/CloudFlare.pm rm -rf /root/.cpanel/datastore/cf_api rm -rf $INSTALL_DIR/bin/admin/CloudFlare rm -rf $INSTALL_DIR/bin/cloudflare_update.sh rm -f $INSTALL_DIR/base/frontend/paper_lantern/dynamicui/dynamicui_cloudflare*.conf ## Remove post update call cfonupgrade=`grep -F "cloudflare_update" /scripts/postupcp` if [ "$cfonupgrade" != "" ]; then sed -i '/cloudflare_update.sh/d' /scripts/postupcp fi echo "Cloudflare cPanel plugin has been uninstalled."