update 更新docker脚本配置

This commit is contained in:
疯狂的狮子li
2021-07-08 20:06:06 +08:00
parent 821f54f1ab
commit 6a8e281b66
3 changed files with 12 additions and 10 deletions

View File

@@ -16,9 +16,9 @@ port(){
##放置挂载文件
mount(){
#挂载配置文件
if test ! -f "/docker/nginx/nginx.conf" ;then
mkdir -p /docker/nginx
cp nginx/nginx.conf /docker/nginx/nginx.conf
if test ! -f "/docker/nginx/conf/nginx.conf" ;then
mkdir -p /docker/nginx/conf
cp nginx/nginx.conf /docker/nginx/conf/nginx.conf
fi
}
@@ -64,13 +64,13 @@ case "$1" in
base
;;
"start")
modules
start
;;
"stop")
stopmodules
stop
;;
"stopall")
stop
stopall
;;
"rm")
rm