This commit is contained in:
Olia Lisa 2025-11-26 09:59:49 +08:00
parent b5f20b9aac
commit a2da384dfd

View File

@ -14,8 +14,8 @@ run() {
check_bash_installed
# 如果配置没有创建
if [ ! -e "$config_dir/../config.json" ]; then
touch "$config_dir/../config.json"
if [ ! -e "$config_dir/config.json" ]; then
touch "$config_dir/config.json"
fi
local password=$(jq -r '.auth.password' "$config_dir/config.json")
if [ ! -s "$config_dir/config.json" ] || [ "$password" = "你的密码" ]; then
@ -29,4 +29,4 @@ run() {
bash "$script_dir/print_share_link.sh"
}
run # 启动容器
run # 启动容器