update, 修改脚本文件夹变量
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
create_config_with_tls_cert() {
|
||||
local script_dir=$(cd "$(dirname "$0")"; pwd)
|
||||
local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 脚本文件夹绝对路径
|
||||
local config_file="$script_dir/../config/config.json"
|
||||
|
||||
cp "$script_dir/../config/template/tls_cert_config.json" "$config_file"
|
||||
@@ -44,7 +44,8 @@ create_config_with_tls_cert() {
|
||||
}
|
||||
|
||||
create_self_tls_config() {
|
||||
local script_dir=$(cd "$(dirname "$0")"; pwd)
|
||||
local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 脚本文件夹绝对路径
|
||||
|
||||
|
||||
cp "$script_dir/../config/template/self_cert_config.json" "$script_dir/../config/config.json"
|
||||
|
||||
@@ -64,7 +65,8 @@ create_self_tls_config() {
|
||||
}
|
||||
|
||||
create_config(){
|
||||
local script_dir=$(cd "$(dirname "$0")"; pwd)
|
||||
local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 脚本文件夹绝对路径
|
||||
|
||||
|
||||
local config_file="$script_dir/../config/config.json"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user