Skip to content

Commit 0c1d6c6

Browse files
authored
feat: add custom Postgres port support for Dispatcharr upgrade (#13347)
1 parent 9239ecf commit 0c1d6c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ct/dispatcharr.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function update_script() {
7070
source /opt/dispatcharr/.env
7171
set +o allexport
7272
if [[ -n "$POSTGRES_DB" ]] && [[ -n "$POSTGRES_USER" ]] && [[ -n "$POSTGRES_PASSWORD" ]]; then
73-
PGPASSWORD=$POSTGRES_PASSWORD pg_dump -U $POSTGRES_USER -h ${POSTGRES_HOST:-localhost} $POSTGRES_DB >/tmp/dispatcharr_db_$(date +%F).sql
73+
PGPASSWORD=$POSTGRES_PASSWORD pg_dump -U "$POSTGRES_USER" -h "${POSTGRES_HOST:-localhost}" -p "${POSTGRES_PORT:-5432}" "$POSTGRES_DB" >/tmp/dispatcharr_db_$(date +%F).sql
7474
msg_info "Database backup created"
7575
fi
7676
fi

0 commit comments

Comments
 (0)