fix: docker安装配置文件注释相关修改
This commit is contained in:
@@ -20,12 +20,12 @@ cp $BASE_DIR/default/omc.yaml $BASE_DIR/omc.yaml
|
||||
# cp $BASE_DIR/default/sshsvc.yaml $BASE_DIR/sshsvc.yaml
|
||||
|
||||
# OMC config
|
||||
sed -i "s/port: 33030/port: $API_HTTP_PORT/" "$BASE_DIR"/omc.yaml
|
||||
sed -i "s/port: 33443/port: $API_HTTPS_PORT/" "$BASE_DIR"/omc.yaml
|
||||
sed -i '/webServer:/,/-/s/^\( *enabled:\) true/\1 false/' "$BASE_DIR"/omc.yaml
|
||||
sed -i 's/host: "127.0.0.1"$/host: "omc_mariadb"/' "$BASE_DIR"/omc.yaml
|
||||
sed -i 's/port: 33066/port: 3306/' "$BASE_DIR"/omc.yaml
|
||||
sed -i 's/host: "127.0.0.1" # Redis host$/host: "omc_keydb" # Redis host/' "$BASE_DIR"/omc.yaml
|
||||
sed -i "s/port: 33030 # http listen port/port: $API_HTTP_PORT # http listen port/" "$BASE_DIR"/omc.yaml
|
||||
sed -i "s/port: 33443 # https listen port/port: $API_HTTPS_PORT # https listen port/" "$BASE_DIR"/omc.yaml
|
||||
sed -i 's/enabled: true # web server enabled/enabled: false # web server enabled/' "$BASE_DIR"/omc.yaml
|
||||
sed -i 's/host: "127.0.0.1" # mysql host$/host: "omc_mariadb" # mysql host/' "$BASE_DIR"/omc.yaml
|
||||
sed -i 's/port: 33066 # mysql port$/port: 3306 # mysql port/' "$BASE_DIR"/omc.yaml
|
||||
sed -i 's/host: "127.0.0.1" # redis host$/host: "omc_keydb" # redis host/' "$BASE_DIR"/omc.yaml
|
||||
|
||||
# Nginx config
|
||||
sed -i 's/#gzip on;/gzip on;/' /etc/nginx/nginx.conf
|
||||
|
||||
Reference in New Issue
Block a user