cl feeadjuster: fix off option #2888

This commit is contained in:
openoms 2022-01-15 12:19:26 +00:00
parent 7a7693caa6
commit f65adc3a1f
No known key found for this signature in database
GPG Key ID: 5BFB77609B081B65

View File

@ -11,10 +11,10 @@ if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ];then
fi
source <(/home/admin/config.scripts/network.aliases.sh getvars cl $2)
plugin="feeadjuster"
if [ "$1" = "on" ];then
plugin="feeadjuster"
if [ ! -f "/home/bitcoin/cl-plugins-available/plugins/${plugin}/${plugin}.py" ]; then
cd /home/bitcoin/cl-plugins-available || exit 1
sudo -u bitcoin git clone https://github.com/lightningd/plugins.git