fix: check cln-grpc after cln is installed

This commit is contained in:
openoms 2022-07-06 09:47:30 +01:00
parent 0b0c8e1547
commit ec3a78a4ca
No known key found for this signature in database
GPG Key ID: 5BFB77609B081B65

View File

@ -415,10 +415,6 @@ if [ "${clNode}" != "${choice}" ]; then
if [ "${choice}" = "on" ]; then
echo "# turning ON"
# also make sure that CLN GRPC is on for WebAPI
/home/admin/config.scripts/cl-plugin.cln-grpc.sh install
/home/admin/config.scripts/cl-plugin.cln-grpc.sh on
/home/admin/config.scripts/cl.install.sh on mainnet
# generate wallet from seedwords or just display (write to dev/null to not write seed words to logs)
/home/admin/config.scripts/cl.hsmtool.sh new mainnet 1>/dev/null
@ -430,6 +426,11 @@ if [ "${clNode}" != "${choice}" ]; then
# no seed for signet
/home/admin/config.scripts/cl.install.sh on signet
fi
# make sure that cln-grpc is on for the WebAPI
/home/admin/config.scripts/cl-plugin.cln-grpc.sh install
/home/admin/config.scripts/cl-plugin.cln-grpc.sh on
else
echo "# turning OFF"
/home/admin/config.scripts/cl-plugin.cln-grpc.sh off