fix bug
This commit is contained in:
parent
1c44ffdb1b
commit
c27d29feee
@ -17,7 +17,7 @@ run() {
|
||||
if [ ! -e "$config_dir/config.json" ]; then
|
||||
touch "$config_dir/config.json"
|
||||
fi
|
||||
local password=$(jq -r '.inbounds[0].users[0].password' "$config_file")
|
||||
local password=$(jq -r '.inbounds[0].users[0].password' "$config_dir/config.json")
|
||||
if [ ! -s "$config_dir/config.json" ] || [ "$password" = "你的密码" ]; then
|
||||
bash "$script_dir/create_config.sh" # 创建配置
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user