Update docker entrypoint
This commit is contained in:
@@ -6,12 +6,13 @@
|
||||
#set -ex
|
||||
echo "...Checking HUSH3.conf"
|
||||
|
||||
if [ ! -e "$HOME/.komodo/HUSH3/HUSH3.conf" ]; then
|
||||
mkdir -p $HOME/.komodo/HUSH3
|
||||
# TODO: support legacy location?
|
||||
if [ ! -e "$HOME/.hush/HUSH3/HUSH3.conf" ]; then
|
||||
mkdir -p $HOME/.hush/HUSH3
|
||||
|
||||
DATE=$(date)
|
||||
echo "...Creating HUSH3.conf"
|
||||
cat <<EOF > $HOME/.komodo/HUSH3.conf
|
||||
cat <<EOF > $HOME/.hush/HUSH3.conf
|
||||
# Generated by docker-entrypoint.sh at $DATE
|
||||
rpcuser=hush
|
||||
rpcpassword=${rpcpassword:-`dd if=/dev/urandom bs=33 count=1 2>/dev/null | base64`}
|
||||
@@ -24,7 +25,7 @@ zdebug=0
|
||||
zindex=0
|
||||
EOF
|
||||
|
||||
cat $HOME/.komodo/HUSH3/HUSH3.conf
|
||||
cat $HOME/.hush/HUSH3/HUSH3.conf
|
||||
fi
|
||||
|
||||
if [ $# -gt 0 ]; then
|
||||
|
||||
Reference in New Issue
Block a user