Update install.sh

pull/883/head
dami 1 month ago
parent 467a8af504
commit da515f8595
  1. 12
      plugins/apache/install.sh

@ -59,15 +59,15 @@ if [ "${2}" == "" ];then
fi
if [ "${action}" == "uninstall" ];then
if [ -f /usr/lib/systemd/system/apache.service ] || [ -f /lib/systemd/system/apache.service ];then
systemctl stop apache
rm -rf /usr/systemd/system/apache.service
rm -rf /lib/systemd/system/apache.service
if [ -f /usr/lib/systemd/system/httpd.service ] || [ -f /lib/systemd/system/httpd.service ];then
systemctl stop httpd
rm -rf /usr/systemd/system/httpd.service
rm -rf /lib/systemd/system/httpd.service
systemctl daemon-reload
fi
if [ -f $serverPath/apache/init.d/apache ];then
$serverPath/apache/init.d/apache stop
if [ -f $serverPath/apache/init.d/httpd ];then
$serverPath/apache/init.d/httpd stop
fi
rm -rf $serverPath/apache

Loading…
Cancel
Save