From 0e0afc778418e0f67313f03f8493498c50f199f1 Mon Sep 17 00:00:00 2001 From: openoms Date: Mon, 6 Jun 2022 12:55:56 +0100 Subject: [PATCH 1/2] fix style --- home.admin/config.scripts/bonus.template.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home.admin/config.scripts/bonus.template.sh b/home.admin/config.scripts/bonus.template.sh index 8ef9ad8d9..81807c305 100755 --- a/home.admin/config.scripts/bonus.template.sh +++ b/home.admin/config.scripts/bonus.template.sh @@ -339,7 +339,7 @@ server { # MAINMENU - show users that app is installed # Take a look at the `00mainmenu.sh` script - you can see there almost all bonus apps add a menu entry there if - # they are installed that then is calling this script with the `menu` parameter. Add your app accordantly. + # they are installed that then is calling this script with the `menu` parameter. Add your app accordingly. # SERVICES MENU - add your app for onclick install # Take a look at the `00settingsMenuServices.sh` script - you can there almost all bonus apps added themselves From f81881d9bfb425fc8d53d3744c64be1aaa765a88 Mon Sep 17 00:00:00 2001 From: openoms Date: Mon, 6 Jun 2022 12:56:46 +0100 Subject: [PATCH 2/2] fix: check for clboss on CLN config file --- home.admin/config.scripts/cl.check.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/home.admin/config.scripts/cl.check.sh b/home.admin/config.scripts/cl.check.sh index 97ade76dd..f2a54dee2 100644 --- a/home.admin/config.scripts/cl.check.sh +++ b/home.admin/config.scripts/cl.check.sh @@ -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