2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-06 14:47:18 +08:00

feat: update

This commit is contained in:
耗子
2023-07-21 02:26:12 +08:00
parent ea59149175
commit 0d4f8bbea1
15 changed files with 388 additions and 98 deletions

View File

@@ -58,8 +58,7 @@ Prepare_system() {
exit 1
fi
wwwUserCheck=$(cat /etc/passwd | grep www)
if [ "${wwwUserCheck}" == "" ]; then
if ! id -u "www" >/dev/null 2>&1; then
groupadd www
useradd -s /sbin/nologin -g www www
fi

View File

@@ -362,6 +362,6 @@ systemctl daemon-reload
systemctl enable openresty.service
systemctl start openresty.service
panel writePlugin openresty
panel writePlugin openresty ${openrestyVersion}
echo -e "${HR}\nOpenResty install completed.\n${HR}"