don't show db connction string in process list.

This commit is contained in:
Jeffery CHEN Fan 2021-08-30 22:28:06 +08:00
parent 233277f7be
commit 438e6b7076
3 changed files with 9 additions and 3 deletions

View File

@ -19,6 +19,8 @@ function check_config() {
value="$2"
if grep -q -E "^\s*\b${param}\b\s*=" "$ODOO_RC" ; then
value=$(grep -E "^\s*\b${param}\b\s*=" "$ODOO_RC" |cut -d " " -f3|sed 's/["\n\r]//g')
else
echo "${param} = ${value} " >> $ODOO_RC
fi;
DB_ARGS+=("--${param}")
DB_ARGS+=("${value}")
@ -35,7 +37,7 @@ case "$1" in
exec odoo "$@"
else
wait-for-psql.py ${DB_ARGS[@]} --timeout=30
exec odoo "$@" "${DB_ARGS[@]}"
exec odoo "$@"
fi
;;
-*)

View File

@ -19,6 +19,8 @@ function check_config() {
value="$2"
if grep -q -E "^\s*\b${param}\b\s*=" "$ODOO_RC" ; then
value=$(grep -E "^\s*\b${param}\b\s*=" "$ODOO_RC" |cut -d " " -f3|sed 's/["\n\r]//g')
else
echo "${param} = ${value} " >> $ODOO_RC
fi;
DB_ARGS+=("--${param}")
DB_ARGS+=("${value}")
@ -35,7 +37,7 @@ case "$1" in
exec odoo "$@"
else
wait-for-psql.py ${DB_ARGS[@]} --timeout=30
exec odoo "$@" "${DB_ARGS[@]}"
exec odoo "$@"
fi
;;
-*)

View File

@ -19,6 +19,8 @@ function check_config() {
value="$2"
if grep -q -E "^\s*\b${param}\b\s*=" "$ODOO_RC" ; then
value=$(grep -E "^\s*\b${param}\b\s*=" "$ODOO_RC" |cut -d " " -f3|sed 's/["\n\r]//g')
else
echo "${param} = ${value} " >> $ODOO_RC
fi;
DB_ARGS+=("--${param}")
DB_ARGS+=("${value}")
@ -35,7 +37,7 @@ case "$1" in
exec odoo "$@"
else
wait-for-psql.py ${DB_ARGS[@]} --timeout=30
exec odoo "$@" "${DB_ARGS[@]}"
exec odoo "$@"
fi
;;
-*)