mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-10 03:23:04 +00:00
DEV: Use docker links to set password environment variable in the hub.
Also, yell at people if they use the default password.
This commit is contained in:
@@ -1,5 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "";
|
||||
echo "Running initdb.sh.";
|
||||
if [ -z "$JPY_PSQL_PASSWORD" ]; then
|
||||
echo "Need to set JPY_PSQL_PASSWORD in Dockerfile via command line";
|
||||
exit 1;
|
||||
elif [ "$JPY_PSQL_PASSWORD" == "arglebargle" ]; then
|
||||
echo "WARNING: Running with password!"
|
||||
echo "You are STRONGLY ADVISED to use your own password.";
|
||||
fi
|
||||
echo "";
|
||||
|
||||
# Start a postgres daemon, ignoring log output.
|
||||
gosu postgres pg_ctl start -w -l /dev/null
|
||||
|
||||
|
Reference in New Issue
Block a user