mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-12 19:20:48 +02:00
#4649 old installed/configured status
This commit is contained in:
parent
eaeb96ae14
commit
9f7c479b0d
@ -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…
Reference in New Issue
Block a user