Format Document in every entrypoint.sh

This commit is contained in:
GuikiPT 2023-01-02 10:17:04 +00:00
parent 4e1c66674e
commit bf0232efc0
3 changed files with 54 additions and 51 deletions

View File

@ -19,7 +19,7 @@ function check_config() {
value="$2" value="$2"
if grep -q -E "^\s*\b${param}\b\s*=" "$ODOO_RC"; then 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') value=$(grep -E "^\s*\b${param}\b\s*=" "$ODOO_RC" | cut -d " " -f3 | sed 's/["\n\r]//g')
fi; fi
DB_ARGS+=("--${param}") DB_ARGS+=("--${param}")
DB_ARGS+=("${value}") DB_ARGS+=("${value}")
} }
@ -44,6 +44,7 @@ case "$1" in
;; ;;
*) *)
exec "$@" exec "$@"
;;
esac esac
exit 1 exit 1

View File

@ -19,7 +19,7 @@ function check_config() {
value="$2" value="$2"
if grep -q -E "^\s*\b${param}\b\s*=" "$ODOO_RC"; then 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') value=$(grep -E "^\s*\b${param}\b\s*=" "$ODOO_RC" | cut -d " " -f3 | sed 's/["\n\r]//g')
fi; fi
DB_ARGS+=("--${param}") DB_ARGS+=("--${param}")
DB_ARGS+=("${value}") DB_ARGS+=("${value}")
} }
@ -44,6 +44,7 @@ case "$1" in
;; ;;
*) *)
exec "$@" exec "$@"
;;
esac esac
exit 1 exit 1

View File

@ -19,7 +19,7 @@ function check_config() {
value="$2" value="$2"
if grep -q -E "^\s*\b${param}\b\s*=" "$ODOO_RC"; then 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') value=$(grep -E "^\s*\b${param}\b\s*=" "$ODOO_RC" | cut -d " " -f3 | sed 's/["\n\r]//g')
fi; fi
DB_ARGS+=("--${param}") DB_ARGS+=("--${param}")
DB_ARGS+=("${value}") DB_ARGS+=("${value}")
} }
@ -44,6 +44,7 @@ case "$1" in
;; ;;
*) *)
exec "$@" exec "$@"
;;
esac esac
exit 1 exit 1