Update install.sh

This commit is contained in:
midoks 2022-07-11 15:19:39 +08:00
parent 5682f4c82c
commit e25d2cd775
1 changed files with 2 additions and 1 deletions

View File

@ -63,9 +63,10 @@ Install_openresty()
Uninstall_openresty()
{
if [ -f /usr/lib/systemd/system/openresty.service ];then
if [ -f /usr/lib/systemd/system/openresty.service ] || [ -f /lib/systemd/system/openresty.service ];then
systemctl stop openresty
rm -rf /usr/systemd/system/openresty.service
rm -rf /lib/systemd/system/openresty.service
systemctl daemon-reload
fi