mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 09:13:49 +08:00
feat: optimize openresty scripts
This commit is contained in:
@@ -333,7 +333,7 @@ chown www:www /www/wwwlogs/waf
|
||||
chmod 755 /www/wwwlogs/waf
|
||||
|
||||
# 写入服务文件
|
||||
cat >/lib/systemd/system/openresty.service <<EOF
|
||||
cat >/etc/systemd/system/openresty.service <<EOF
|
||||
[Unit]
|
||||
Description=The OpenResty Application Platform
|
||||
After=syslog.target network-online.target remote-fs.target nss-lookup.target
|
||||
@@ -356,3 +356,5 @@ systemctl enable openresty.service
|
||||
systemctl start openresty.service
|
||||
|
||||
panel writePlugin openresty
|
||||
|
||||
echo -e "${HR}\nOpenResty install completed.\n${HR}"
|
||||
|
||||
@@ -17,3 +17,14 @@ limitations under the License.
|
||||
'
|
||||
|
||||
HR="+----------------------------------------------------"
|
||||
|
||||
systemctl stop openresty
|
||||
systemctl disable openresty
|
||||
rm -rf /etc/systemd/system/openresty.service
|
||||
systemctl daemon-reload
|
||||
pkill -9 nginx
|
||||
rm -rf /www/server/openresty
|
||||
|
||||
panel deletePlugin openresty
|
||||
|
||||
echo -e "${HR}\nOpenResty uninstall completed.\n${HR}"
|
||||
|
||||
Reference in New Issue
Block a user