update
This commit is contained in:
parent
feda11fb16
commit
a46c507968
@ -77,8 +77,6 @@ change_port(){
|
||||
local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
local config_dir=$(readlink -f "$script_dir/../config")
|
||||
local config_file="$config_dir/config.json"
|
||||
|
||||
source "$script_dir/utils/jq_util.sh"
|
||||
|
||||
local port=$(find_free_port)
|
||||
modify_json_file "$config_file" ".listen" ":$port"
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
#!/bin/bash
|
||||
source ./bin/utils/base.sh
|
||||
source ./bin/utils/jq_util.sh
|
||||
|
||||
|
||||
install(){
|
||||
local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/bin" # 脚本所在目录
|
||||
source "${script_dir}/utils/base.sh"
|
||||
|
||||
if ! command -v curl >/dev/null 2>&1; then
|
||||
install_package curl
|
||||
fi
|
||||
@ -29,9 +29,6 @@ install(){
|
||||
}
|
||||
|
||||
main(){
|
||||
local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/bin" # 脚本所在目录
|
||||
source "${script_dir}/utils/base.sh"
|
||||
|
||||
# 显示菜单
|
||||
echo "请选择一个操作:"
|
||||
echo "1. 一键部署"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user