cl.check: make sure plugins are loaded #2953

This commit is contained in:
openoms 2022-02-13 19:24:50 +00:00
parent fbf6db75ab
commit f6aeeb0fa7
No known key found for this signature in database
GPG Key ID: 5BFB77609B081B65

View File

@ -21,6 +21,11 @@ source <(/home/admin/config.scripts/network.aliases.sh getvars cl $2)
# so it tries to make sure the config is in valid shape
######################################################################
# make sure plugins are loaded https://github.com/rootzoll/raspiblitz/issues/2953
if [ $(grep -c "^plugin-dir=/home/bitcoin/${netprefix}cl-plugins-enabled" < ${CLCONF}) -eq 0 ];then
echo "plugin-dir=/home/bitcoin/${netprefix}cl-plugins-enabled" | tee -a ${CLCONF}
fi
# do not announce 127.0.0.1 https://github.com/rootzoll/raspiblitz/issues/2634
if [ $(grep -c "^announce-addr=127.0.0.1" < ${CLCONF}) -gt 0 ];then
sed -i "/^announce-addr=127.0.0.1/d" ${CLCONF}