[BUG] Quick Installer: INVENTREE_DB_PORT errors (#4224)

Fixes #4222
This commit is contained in:
Matthias Mair 2023-01-24 23:31:55 +01:00 committed by GitHub
parent 642c76390e
commit 1862904a2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ database:
#USER: sampleuser #USER: sampleuser
#PASSWORD: samplepassword #PASSWORD: samplepassword
#HOST: samplehost #HOST: samplehost
#PORT: sampleport #PORT: 123456
# --- Example Configuration - MySQL --- # --- Example Configuration - MySQL ---
#ENGINE: mysql #ENGINE: mysql

View File

@ -130,7 +130,7 @@ function detect_envs() {
export INVENTREE_DB_USER=${INVENTREE_DB_USER:-sampleuser} export INVENTREE_DB_USER=${INVENTREE_DB_USER:-sampleuser}
export INVENTREE_DB_PASSWORD=${INVENTREE_DB_PASSWORD:-samplepassword} export INVENTREE_DB_PASSWORD=${INVENTREE_DB_PASSWORD:-samplepassword}
export INVENTREE_DB_HOST=${INVENTREE_DB_HOST:-samplehost} export INVENTREE_DB_HOST=${INVENTREE_DB_HOST:-samplehost}
export INVENTREE_DB_PORT=${INVENTREE_DB_PORT:-sampleport} export INVENTREE_DB_PORT=${INVENTREE_DB_PORT:-123456}
export SETUP_CONF_LOADED=true export SETUP_CONF_LOADED=true
fi fi
@ -276,7 +276,7 @@ function set_env() {
# Database host # Database host
sed -i s=#HOST:\ samplehost=HOST:\ ${INVENTREE_DB_HOST}=g ${INVENTREE_CONFIG_FILE} sed -i s=#HOST:\ samplehost=HOST:\ ${INVENTREE_DB_HOST}=g ${INVENTREE_CONFIG_FILE}
# Database port # Database port
sed -i s=#PORT:\ sampleport=PORT:\ ${INVENTREE_DB_PORT}=g ${INVENTREE_CONFIG_FILE} sed -i s=#PORT:\ 123456=PORT:\ ${INVENTREE_DB_PORT}=g ${INVENTREE_CONFIG_FILE}
# Fixing the permissions # Fixing the permissions
chown ${APP_USER}:${APP_GROUP} ${DATA_DIR} ${INVENTREE_CONFIG_FILE} chown ${APP_USER}:${APP_GROUP} ${DATA_DIR} ${INVENTREE_CONFIG_FILE}