fix bug
This commit is contained in:
parent
530931e5bc
commit
ecc081d661
@ -4,7 +4,7 @@
|
|||||||
create_config_with_tls_cert() {
|
create_config_with_tls_cert() {
|
||||||
local script_dir=$(cd "$(dirname "$0")"; pwd)
|
local script_dir=$(cd "$(dirname "$0")"; pwd)
|
||||||
|
|
||||||
cp "$script_dir/../config_template/tls_cert_config.json" "$script_dir/../config.json"
|
cp "$script_dir/../config/config_template/tls_cert_config.json" "$script_dir/../config/config.json"
|
||||||
|
|
||||||
# 设置端口
|
# 设置端口
|
||||||
bash "$script_dir/update_port.sh"
|
bash "$script_dir/update_port.sh"
|
||||||
@ -34,7 +34,7 @@ create_config_with_tls_cert() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
# 替换配置文件中的占位符
|
# 替换配置文件中的占位符
|
||||||
local config_file="$script_dir/../config.json"
|
local config_file="$script_dir/../config/config.json"
|
||||||
|
|
||||||
# 使用 sed 替换邮箱
|
# 使用 sed 替换邮箱
|
||||||
sed -i "s/你的邮箱/$user_email/g" "$config_file"
|
sed -i "s/你的邮箱/$user_email/g" "$config_file"
|
||||||
@ -51,7 +51,7 @@ create_config_with_tls_cert() {
|
|||||||
create_self_tls_config() {
|
create_self_tls_config() {
|
||||||
local script_dir=$(cd "$(dirname "$0")"; pwd)
|
local script_dir=$(cd "$(dirname "$0")"; pwd)
|
||||||
|
|
||||||
cp "$script_dir/../config_template/self_cert_config.json" "$script_dir/../config.json"
|
cp "$script_dir/../config/config_template/self_cert_config.json" "$script_dir/../config/config.json"
|
||||||
|
|
||||||
# 设置端口
|
# 设置端口
|
||||||
bash "$script_dir/update_port.sh"
|
bash "$script_dir/update_port.sh"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user