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;
writable = true;
guestOk = false;
"create mask" = "0775";
"directory mask" = "0775";
"create mask" = "0660";
"directory mask" = "0770";
};
media = {
path = "/holocron/media";

View File

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