This commit is contained in:
2025-10-14 21:43:17 -05:00
parent 1e8b341977
commit 7a211acea3

View File

@@ -61,8 +61,8 @@ in {
echo -e "''${YELLOW}Homelab Services''${RESET}"
${lib.concatStringsSep "\n" (map (service: ''
if systemctl list-units --type=service --all | grep -q "^''${service}"; then
status=$(systemctl is-active ''${service} 2>/dev/null)
if systemctl list-units --type=service --all | grep -q "^${service}"; then
status=$(systemctl is-active ${service} 2>/dev/null)
if [ "''${status}" = "active" ]; then
echo -e " ''${BLUE}${service}''${RESET} - running"
else