#4649 correct electrs installed status (#4651)

#4649 old installed/configured status
This commit is contained in:
/rootzoll 2024-07-21 00:04:44 +02:00 committed by GitHub
parent eaeb96ae14
commit 9f7c479b0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,16 +32,18 @@ if [ "$1" = "status" ]; then
if [ "${ElectRS}" = "on" ]; then
echo "configured=1"
echo "installed=1"
else
echo "configured=0"
echo "installed=0"
echo "infoSync='Service not installed'"
fi
if id "electrs" &>/dev/null; then
echo "installed=1"
else
echo "installed=0"
fi
#if id "electrs" &>/dev/null; then
# echo "installed=1"
#else
# echo "installed=0"
#fi
serviceInstalled=$(sudo systemctl status electrs --no-page 2>/dev/null | grep -c "electrs.service - Electrs")
serviceRunning=$(sudo systemctl status electrs --no-page 2>/dev/null | grep -c "active (running)")