fix btc_version display for v23.0.0

This commit is contained in:
openoms 2022-04-27 07:50:32 +01:00
parent 8101d467bd
commit 62b40e92b3
No known key found for this signature in database
GPG Key ID: 5BFB77609B081B65

View File

@ -40,7 +40,7 @@ fi
if [ "$2" = "status" ]; then
btc_version=$($bitcoincli_alias -version 2>/dev/null | cut -d ' ' -f6)
btc_version=$($bitcoincli_alias -version 2>/dev/null | head -1 | cut -d ' ' -f6)
btc_running=$(systemctl status $service_alias 2>/dev/null | grep -c "active (running)")
btc_ready="0"
btc_online="0"