feat: 修改reality域名成功后, 打印分享链接
This commit is contained in:
@@ -29,6 +29,10 @@ restart_docker() {
|
|||||||
|
|
||||||
# 停止docker容器
|
# 停止docker容器
|
||||||
stop_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)
|
local RUNNING_COUNT=$(docker compose -f $COMPOSE_FILE ps -q | wc -l)
|
||||||
if [ "$RUNNING_COUNT" -eq 0 ]; then
|
if [ "$RUNNING_COUNT" -eq 0 ]; then
|
||||||
echo "容器未运行,无需停止"
|
echo "容器未运行,无需停止"
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ main(){
|
|||||||
check_config
|
check_config
|
||||||
update_reality_dest
|
update_reality_dest
|
||||||
restart_docker
|
restart_docker
|
||||||
|
print_share_link
|
||||||
;;
|
;;
|
||||||
9)
|
9)
|
||||||
# 更新脚本
|
# 更新脚本
|
||||||
|
|||||||
Reference in New Issue
Block a user