优化自动脚本逻辑
This commit is contained in:
@@ -350,10 +350,10 @@ custom_config() {
|
||||
print_subtitle "自定义配置"
|
||||
echo ""
|
||||
|
||||
read -p "请输入监听端口 [${DEFAULT_PORT}]: " INPUT_PORT
|
||||
read -p "请输入监听端口 [${DEFAULT_PORT}]: " INPUT_PORT </dev/tty
|
||||
PORT=${INPUT_PORT:-$DEFAULT_PORT}
|
||||
|
||||
read -p "请输入部署目录 [${DEFAULT_DEPLOY_DIR}]: " INPUT_DEPLOY_DIR
|
||||
read -p "请输入部署目录 [${DEFAULT_DEPLOY_DIR}]: " INPUT_DEPLOY_DIR </dev/tty
|
||||
DEPLOY_DIR=${INPUT_DEPLOY_DIR:-$DEFAULT_DEPLOY_DIR}
|
||||
DATA_DIR="${DEPLOY_DIR}/data"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user