From e43eff325bae78ba4b24ff03d994e60c9e59d263 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sat, 15 Jun 2024 20:32:11 +0800 Subject: [PATCH] Update install_dev.sh --- scripts/install_dev.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/install_dev.sh b/scripts/install_dev.sh index 61b7bf04f..b9604fae2 100755 --- a/scripts/install_dev.sh +++ b/scripts/install_dev.sh @@ -83,6 +83,14 @@ fi echo "local:${LOCAL_ADDR}" if [ $OSNAME != "macos" ];then + + if id www &> /dev/null ;then + echo "" + else + groupadd www + useradd -g www -s /usr/sbin/nologin www + fi + mkdir -p /www/server mkdir -p /www/wwwroot mkdir -p /www/wwwlogs