fix motd
This commit is contained in:
@@ -64,12 +64,12 @@ in {
|
|||||||
if systemctl list-units --type=service --all | grep -q "^''${service}"; then
|
if systemctl list-units --type=service --all | grep -q "^''${service}"; then
|
||||||
status=$(systemctl is-active ''${service} 2>/dev/null)
|
status=$(systemctl is-active ''${service} 2>/dev/null)
|
||||||
if [ "''${status}" = "active" ]; then
|
if [ "''${status}" = "active" ]; then
|
||||||
echo -e " ''${BLUE}''${service}''${RESET} - running"
|
echo -e " ''${BLUE}${service}''${RESET} - running"
|
||||||
else
|
else
|
||||||
echo -e " ''${RED}''${service}''${RESET} - not running"
|
echo -e " ''${RED}${service}''${RESET} - not running"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo -e " ''${RED}''${service}''${RESET} - not found"
|
echo -e " ''${RED}${service}''${RESET} - not found"
|
||||||
fi
|
fi
|
||||||
'')
|
'')
|
||||||
motdServices)}
|
motdServices)}
|
||||||
|
|||||||
Reference in New Issue
Block a user