22 lines
451 B
Bash
22 lines
451 B
Bash
#!/bin/bash
|
|
|
|
create_reality_config(){
|
|
script_dir=$(cd "$(dirname "$0")"; pwd) # 脚本文件绝对路径
|
|
source "$script_dir/utils/base.sh"
|
|
|
|
# 检查jq是否安装
|
|
check_jq
|
|
|
|
# 生成uui, 写入到config.json文件
|
|
bash $script_dir/update_uuid.sh
|
|
|
|
# 生成密钥对, 修改config.json中的密钥属性
|
|
bash $script_dir/update_key.sh
|
|
|
|
# 设置端口
|
|
bash $script_dir/update_port.sh
|
|
|
|
echo "初始化完成"
|
|
}
|
|
|
|
create_reality_config |