Use dokku link env var

This commit is contained in:
Luke Murphy 2020-03-22 17:36:19 +01:00
parent 5d77a97802
commit 49355826ef
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -19,7 +19,7 @@ setup_root_user() {
return
fi
user_count=$(mysql -u"${DB_USER}" -p"${DB_PASSWD}" -h "${DB_HOST}" --database="${DB_NAME}" -N -B -e "SELECT count(*) FROM user;")
user_count=$(mysql -u"${DB_USER}" -p"${DB_PASSWD}" -h "${DOKKU_MARIADB_GITEA_PORT_3306_TCP_ADDR}" --database="${DB_NAME}" -N -B -e "SELECT count(*) FROM user;")
if [[ "${user_count}" == "0" ]]; then
echo "-----> Setting up root user for initial deployment"