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