2018-10-02 22:33:20 +02:00
#!/bin/bash
2018-10-03 00:05:03 +02:00
2018-10-02 22:33:20 +02:00
## Ensure perms are correct prior to running main binary
2018-10-03 00:05:03 +02:00
mkdir -p /data/lbrycrdd
mkdir -p /etc/lbrycrdd
2018-10-02 22:33:20 +02:00
chown -R 1000:1000 /data
chmod -R 755 /data
chown -R 1000:1000 /etc/lbrycrdd
chmod -R 755 /etc/lbrycrdd
rm -f /var/run/lbrycrdd.pid
## For now keeping this simple. Potentially eventually add all command args as envvars for the Dockerfile or use safe way to add args via docker-compose.yml
~/lbrycrdd \
-conf= ${ CONF_PATH :- /etc/lbrycrdd/lbrycrdd.conf } \
-data= ${ DATA_DIR :- /data/ } \
-port= ${ PORT :- 9246 } \
-pid= ${ PID_FILE : /var/run/lbrycrdd.pid } \
-printtoconsole \
-rpcport= ${ RPC_PORT :- 9245 } \
-rpcpassword= ${ RPC_PASSWORD :- changeme } \
2018-10-02 23:22:47 +02:00
-rpcallowip= ${ RPC_ALLOW_IP :- 10 .10.0.2 } \
2018-10-02 22:33:20 +02:00
-rpcuser= ${ RPC_USER :- lbryrpc }