update, 增加脚本
This commit is contained in:
parent
228b56445c
commit
ee9e10d31c
@ -7,6 +7,3 @@ bash "$script_dir/update_password.sh"
|
||||
|
||||
# 更新证书和设置域名
|
||||
bash "$script_dir/set_domain.sh" "bing.com"
|
||||
|
||||
# 打印分享链接
|
||||
bash "$script_dir/print_share_link.sh"
|
||||
18
bin/run.sh
Normal file
18
bin/run.sh
Normal file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
script_dir=$(cd "$(dirname "$0")"; pwd) # 脚本文件绝对路径
|
||||
config_dir=$(readlink -f "$script_dir/../") # 配置文件绝对路径
|
||||
|
||||
password=$(jq -r '.auth.password' $config_dir/config.json)
|
||||
|
||||
# 如果配置未初始化
|
||||
if [ $password = "你的密码" ]; then
|
||||
# 执行初始化脚本
|
||||
bash $script_dir/init.sh
|
||||
fi
|
||||
|
||||
## 启动docker容器
|
||||
docker-compose -f $script_dir/../docker-compose.yml up -d
|
||||
|
||||
# 打印分享链接
|
||||
bash $script_dir/print_share_link.sh
|
||||
Loading…
Reference in New Issue
Block a user