fix formatting on service list

This commit is contained in:
2025-10-15 20:25:06 -05:00
parent b868f691d8
commit aebc51cc2e
2 changed files with 7 additions and 7 deletions

View File

@@ -21,8 +21,8 @@ let
browseable = true; browseable = true;
writable = true; writable = true;
guestOk = false; guestOk = false;
"create mask" = "0775"; "create mask" = "0660";
"directory mask" = "0775"; "directory mask" = "0770";
}; };
media = { media = {
path = "/holocron/media"; path = "/holocron/media";

View File

@@ -63,12 +63,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
printf "%-28s%s\n" " ''${active}${service}''${reset}" "running" printf "%-32s%s\n" " ''${active}[${service}]''${reset}" "running"
else else
printf "%-28s%s\n" " ''${active}${service}''${reset}" "not running" printf "%-32s%s\n" " ''${active}[${service}]''${reset}" "not running"
fi fi
else else
printf "%-28s%s\n" " ''${active}${service}''${reset}" "not found" printf "%-32s%s\n" " ''${active}[${service}]''${reset}" "not found"
fi fi
'') '')
motd_list)} motd_list)}
@@ -80,9 +80,9 @@ in {
for service in velocity smp superflat bento; do for service in velocity smp superflat bento; do
status=$(systemctl is-active $service 2>/dev/null) status=$(systemctl is-active $service 2>/dev/null)
if [ "$status" = "active" ]; then if [ "$status" = "active" ]; then
printf "%-28s%s\n" " ''${active}$service''${reset}" "running" printf "%-32s%s\n" " ''${active}[$service]''${reset}" "running"
else else
printf "%-28s%s\n" " ''${active}$service''${reset}" "not running" printf "%-32s%s\n" " ''${active}[$service]''${reset}" "not running"
fi fi
done done
echo echo