2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 16:10:59 +08:00

feat: optimize openresty scripts

This commit is contained in:
耗子
2023-07-08 02:39:45 +08:00
parent c4199dad4e
commit b88a398343
2 changed files with 14 additions and 1 deletions

View File

@@ -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}"

View File

@@ -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}"