fix: check for clboss on CLN config file

This commit is contained in:
openoms 2022-06-06 12:56:46 +01:00
parent 0e0afc7784
commit f81881d9bf
No known key found for this signature in database
GPG Key ID: 5BFB77609B081B65

View File

@ -40,6 +40,15 @@ if [ $(grep -c "^sparko" < ${CLCONF}) -gt 0 ];then
fi
fi
if [ $(grep -c "^clboss" < ${CLCONF}) -gt 0 ];then
if [ ! -f /home/bitcoin/${netprefix}cl-plugins-enabled/clboss ]\
|| [ "$(eval echo \$${netprefix}sparko)" != "on" ]; then
echo "# The clboss plugin is not present but in config"
sed -i "/^clboss/d" ${CLCONF}
rm -rf /home/bitcoin/${netprefix}cl-plugins-enabled/clboss
fi
fi
if [ $(grep -c "^http-pass" < ${CLCONF}) -gt 0 ];then
if [ ! -f /home/bitcoin/cl-plugins-enabled/c-lightning-http-plugin ]\
|| [ "${clHTTPplugin}" != "on" ]; then