2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 01:55:39 +00:00

[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
2 changed files with 3 additions and 3 deletions

View File

@ -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}