deadass this time
This commit is contained in:
@@ -61,7 +61,7 @@ in {
|
||||
echo -e "''${YELLOW}Homelab Services''${RESET}"
|
||||
|
||||
${lib.concatStringsSep "\n" (map (service: ''
|
||||
if systemctl list-units --type=service --all | grep -q "^${service}"; then
|
||||
if systemctl list-units --type=service --all | grep "${service}"; then
|
||||
status=$(systemctl is-active ${service} 2>/dev/null)
|
||||
if [ "''${status}" = "active" ]; then
|
||||
echo -e " ''${BLUE}${service}''${RESET} - running"
|
||||
|
||||
Reference in New Issue
Block a user