diff --git a/tools/rndpass/startup.sh b/tools/rndpass/startup.sh index 9af1a01c4c..554213fbc3 100755 --- a/tools/rndpass/startup.sh +++ b/tools/rndpass/startup.sh @@ -1,9 +1,12 @@ #!/bin/sh - +if [ -f /etc/sysconfig/immudb ] +then + source /etc/sysconfig/immudb +fi if [ -z "$IMMUDB_ADMIN_PASSWORD" ] then - export IMMUDB_ADMIN_PASSWORD=`tr -cd '[:alnum:].,:;/@_=' < /dev/urandom|head -c 16` + IMMUDB_ADMIN_PASSWORD=`tr -cd '[:alnum:].,:;/@_=' < /dev/urandom|head -c 16` echo "Generated immudb password: $IMMUDB_ADMIN_PASSWORD" fi - +export IMMUDB_ADMIN_PASSWORD exec $@