23 lines
544 B
Bash
23 lines
544 B
Bash
#!/bin/bash
|
|
|
|
source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh)
|
|
if [ $? -ne 0 ]; then
|
|
echo "Download public.sh failed, please check the network or try again later."
|
|
exit 1
|
|
fi
|
|
|
|
systemctl stop apache
|
|
systemctl disable apache
|
|
rm -f /etc/systemd/system/apache.service
|
|
systemctl daemon-reload
|
|
rm -rf ${setup_path}/server/apache
|
|
rm -f /usr/local/bin/httpd
|
|
rm -f /usr/local/bin/apachectl
|
|
|
|
acepanel app remove apache
|
|
acepanel setting remove webserver
|
|
|
|
echo -e $HR
|
|
echo "Uninstallation successful"
|
|
echo -e $HR
|