forked from apache/superset
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clarifying messages, removing some useless output
- Loading branch information
1 parent
cd6cc34
commit 29fd4a3
Showing
4 changed files
with
14 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,15 +30,9 @@ fi | |
|
||
echo_step() { | ||
cat <<EOF | ||
###################################################################### | ||
Init Step ${1}/${STEP_CNT} [${2}] -- ${3} | ||
Docker Init Step ${1}/${STEP_CNT} [${2}] -- ${3} | ||
###################################################################### | ||
EOF | ||
} | ||
ADMIN_PASSWORD="${ADMIN_PASSWORD:-admin}" | ||
|
@@ -52,7 +46,6 @@ fi | |
# Initialize the database | ||
echo_step "1" "Starting" "Applying DB migrations" | ||
superset db upgrade | ||
echo_step "1" "Complete" "Applying DB migrations" | ||
|
||
# Create an admin user | ||
echo_step "2" "Starting" "Setting up admin user ( admin / $ADMIN_PASSWORD )" | ||
|
@@ -62,11 +55,9 @@ superset fab create-admin \ | |
--lastname Admin \ | ||
--email [email protected] \ | ||
--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" | ||
superset init | ||
echo_step "3" "Complete" "Setting up roles and perms" | ||
|
||
if [ "$SUPERSET_LOAD_EXAMPLES" = "yes" ]; then | ||
# Load some data to play with | ||
|
@@ -78,5 +69,4 @@ if [ "$SUPERSET_LOAD_EXAMPLES" = "yes" ]; then | |
else | ||
superset load_examples --force | ||
fi | ||
echo_step "4" "Complete" "Loading examples" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters