From 83ef420db94d967414df9513779089430080bdf4 Mon Sep 17 00:00:00 2001 From: Leopere Date: Tue, 6 Nov 2018 18:32:25 -0500 Subject: [PATCH] Adding more comments --- lbrycrd/start.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lbrycrd/start.sh b/lbrycrd/start.sh index 52ff3cf..50c22ce 100755 --- a/lbrycrd/start.sh +++ b/lbrycrd/start.sh @@ -10,12 +10,15 @@ ## Ensure perms are correct prior to running main binary chown -R 1000:1000 /data chmod -R 755 /data -chown -R 1000:1000 /etc/lbrycrd -chmod -R 755 /etc/lbrycrd + +## TODO: Consider a config directory for future magic. +# chown -R 1000:1000 /etc/lbrycrd +# chmod -R 755 /etc/lbrycrd rm -f /var/run/lbrycrd.pid mkdir -p ~/.lbrycrd ## Set config params +## TODO: Make this more automagic in the future. echo -e "rpcuser=lbryrpc\nrpcpassword=${RPC_PASSWORD:-changeme}" > $HOME/.lbrycrd/lbrycrd.conf echo -e "rpcallowip=${RPC_ALLOW_IP:-10.5.1.3}" >> $HOME/.lbrycrd/lbrycrd.conf echo -e "rpcuser=${RPC_USER:-lbryrpc}" >> $HOME/.lbrycrd/lbrycrd.conf @@ -45,7 +48,7 @@ case ${RUN_MODE:-default} in ;; esac - +## TODO: Look into what we can do with these launch params ## We were unsure if these function as intended so they were disabled for the time being. # -port=${PORT:-9246} \ # -data=${DATA_DIR:-/data/} \