feat: 修改reality域名成功后, 打印分享链接
This commit is contained in:
@@ -29,6 +29,10 @@ restart_docker() {
|
||||
|
||||
# 停止docker容器
|
||||
stop_docker(){
|
||||
local SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 脚本文件夹绝对路径
|
||||
local COMPOSE_FILE="$SCRIPT_DIR/../docker-compose.yml"
|
||||
check_docker_compose_file $COMPOSE_FILE
|
||||
|
||||
local RUNNING_COUNT=$(docker compose -f $COMPOSE_FILE ps -q | wc -l)
|
||||
if [ "$RUNNING_COUNT" -eq 0 ]; then
|
||||
echo "容器未运行,无需停止"
|
||||
|
||||
Reference in New Issue
Block a user