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}