motd make gameservers inclusion more conditional
This commit is contained in:
@@ -93,7 +93,7 @@ in {
|
||||
motd_list)}
|
||||
|
||||
echo
|
||||
|
||||
${lib.optionalString (motd_gs_list != []) ''
|
||||
# --- gameservers ---
|
||||
echo -e "''${headings}gameservers:''${reset}"
|
||||
${lib.concatStringsSep "\n" (map (service: ''
|
||||
@@ -106,6 +106,7 @@ in {
|
||||
fi
|
||||
'')
|
||||
motd_gs_list)}
|
||||
''}
|
||||
'';
|
||||
|
||||
environment.etc."motd".mode = "0755";
|
||||
|
||||
Reference in New Issue
Block a user