This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new ee72d6cdca feat: Enable customizing the docker admin password (#29498)
ee72d6cdca is described below
commit ee72d6cdca677f40932895eea674d29a147b301d
Author: Clemens Wolff <[email protected]>
AuthorDate: Mon Jul 8 20:01:40 2024 +0200
feat: Enable customizing the docker admin password (#29498)
---
docker/docker-init.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docker/docker-init.sh b/docker/docker-init.sh
index b54f999cb2..397bb7d986 100755
--- a/docker/docker-init.sh
+++ b/docker/docker-init.sh
@@ -37,7 +37,7 @@ Init Step ${1}/${STEP_CNT} [${2}] -- ${3}
EOF
}
-ADMIN_PASSWORD="admin"
+ADMIN_PASSWORD="${ADMIN_PASSWORD:-admin}"
# If Cypress run – overwrite the password for admin and export env variables
if [ "$CYPRESS_CONFIG" == "true" ]; then
ADMIN_PASSWORD="general"
@@ -57,7 +57,7 @@ superset fab create-admin \
--firstname Superset \
--lastname Admin \
--email [email protected] \
- --password $ADMIN_PASSWORD
+ --password "$ADMIN_PASSWORD"
echo_step "2" "Complete" "Setting up admin user"
# Create default roles and permissions
echo_step "3" "Starting" "Setting up roles and perms"