mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-28 16:58:03 +01:00
#4649 old installed/configured status
This commit is contained in:
parent
eaeb96ae14
commit
9f7c479b0d
1 changed files with 7 additions and 5 deletions
|
@ -32,16 +32,18 @@ if [ "$1" = "status" ]; then
|
||||||
|
|
||||||
if [ "${ElectRS}" = "on" ]; then
|
if [ "${ElectRS}" = "on" ]; then
|
||||||
echo "configured=1"
|
echo "configured=1"
|
||||||
|
echo "installed=1"
|
||||||
else
|
else
|
||||||
echo "configured=0"
|
echo "configured=0"
|
||||||
|
echo "installed=0"
|
||||||
echo "infoSync='Service not installed'"
|
echo "infoSync='Service not installed'"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if id "electrs" &>/dev/null; then
|
#if id "electrs" &>/dev/null; then
|
||||||
echo "installed=1"
|
# echo "installed=1"
|
||||||
else
|
#else
|
||||||
echo "installed=0"
|
# echo "installed=0"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
serviceInstalled=$(sudo systemctl status electrs --no-page 2>/dev/null | grep -c "electrs.service - Electrs")
|
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)")
|
serviceRunning=$(sudo systemctl status electrs --no-page 2>/dev/null | grep -c "active (running)")
|
||||||
|
|
Loading…
Add table
Reference in a new issue