We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 767dc50 + bcffa3b commit 9227eefCopy full SHA for 9227eef
docker-entrypoint.sh
@@ -18,10 +18,16 @@ if [[ "$HASHTOPOLIS_DB_TYPE" == "mysql" ]]; then
18
echo "Using MySQL..."
19
DB_CMD="mysql -u${HASHTOPOLIS_DB_USER} -p${HASHTOPOLIS_DB_PASS} -h ${HASHTOPOLIS_DB_HOST} --skip-ssl"
20
DB_TYPE="mysql"
21
+ if [[ -n "${HASHTOPOLIS_DB_PORT}" ]]; then
22
+ DB_CMD="${DB_CMD} -P${HASHTOPOLIS_DB_PORT}"
23
+ fi
24
elif [[ "$HASHTOPOLIS_DB_TYPE" == "postgres" ]]; then
25
echo "Using postgres..."
26
DB_CMD="psql -U${HASHTOPOLIS_DB_USER} -h ${HASHTOPOLIS_DB_HOST} ${HASHTOPOLIS_DB_DATABASE}"
27
DB_TYPE="postgres"
28
29
+ DB_CMD="${DB_CMD} -p${HASHTOPOLIS_DB_PORT}"
30
31
else
32
echo "INVALID DATABASE TYPE PROVIDED: $HASHTOPOLIS_DB_TYPE"
33
exit 1
0 commit comments