Use dokku link env var
This commit is contained in:
parent
5d77a97802
commit
49355826ef
@ -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"
|
||||
|
Reference in New Issue
Block a user