From 1862904a2fd8f5256036bf8a684539cc19c9d7b0 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Tue, 24 Jan 2023 23:31:55 +0100 Subject: [PATCH] [BUG] Quick Installer: `INVENTREE_DB_PORT` errors (#4224) Fixes #4222 --- InvenTree/config_template.yaml | 2 +- contrib/packager.io/functions.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/InvenTree/config_template.yaml b/InvenTree/config_template.yaml index 34311a1b6a..b8c15fc413 100644 --- a/InvenTree/config_template.yaml +++ b/InvenTree/config_template.yaml @@ -32,7 +32,7 @@ database: #USER: sampleuser #PASSWORD: samplepassword #HOST: samplehost - #PORT: sampleport + #PORT: 123456 # --- Example Configuration - MySQL --- #ENGINE: mysql diff --git a/contrib/packager.io/functions.sh b/contrib/packager.io/functions.sh index 7d42dadf66..8ff9784eca 100755 --- a/contrib/packager.io/functions.sh +++ b/contrib/packager.io/functions.sh @@ -130,7 +130,7 @@ function detect_envs() { export INVENTREE_DB_USER=${INVENTREE_DB_USER:-sampleuser} export INVENTREE_DB_PASSWORD=${INVENTREE_DB_PASSWORD:-samplepassword} 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 fi @@ -276,7 +276,7 @@ function set_env() { # Database host sed -i s=#HOST:\ samplehost=HOST:\ ${INVENTREE_DB_HOST}=g ${INVENTREE_CONFIG_FILE} # 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 chown ${APP_USER}:${APP_GROUP} ${DATA_DIR} ${INVENTREE_CONFIG_FILE}