mirror of
https://github.com/kmein/niveum
synced 2026-03-19 19:41:08 +01:00
go-webring: fix module
This commit is contained in:
@@ -81,7 +81,7 @@ in
|
|||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
requires = [ "network.target" ];
|
requires = [ "network.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "notify";
|
Type = "simple";
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
${lib.getExe cfg.package} \
|
${lib.getExe cfg.package} \
|
||||||
${lib.optionalString (cfg.contactInstructions != null) ("--contact " + lib.escapeShellArg cfg.contactInstructions)} \
|
${lib.optionalString (cfg.contactInstructions != null) ("--contact " + lib.escapeShellArg cfg.contactInstructions)} \
|
||||||
@@ -90,7 +90,7 @@ in
|
|||||||
--listen ${cfg.listenAddress} \
|
--listen ${cfg.listenAddress} \
|
||||||
--members ${
|
--members ${
|
||||||
pkgs.writeText "list.txt" (
|
pkgs.writeText "list.txt" (
|
||||||
lib.concatMapStringsSep "\n" (member: member.username + " " + member.site) cfg.members
|
lib.concatMapStrings (member: member.username + " " + member.site + "\n") cfg.members
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
@@ -100,8 +100,6 @@ in
|
|||||||
WorkingDirectory = "/var/lib/go-webring";
|
WorkingDirectory = "/var/lib/go-webring";
|
||||||
StateDirectory = "go-webring";
|
StateDirectory = "go-webring";
|
||||||
RuntimeDirectoryMode = "0750";
|
RuntimeDirectoryMode = "0750";
|
||||||
WatchdogSec = 60;
|
|
||||||
WatchdogSignal = "SIGKILL";
|
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = 5;
|
RestartSec = 5;
|
||||||
|
|
||||||
|
|||||||
@@ -22,8 +22,9 @@ in
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Willkommen beim Dichtungs-Ring</h1>
|
<h1>Willkommen beim Dichtungs-Ring</h1>
|
||||||
|
<p>Ein <a href="https://de.wikipedia.org/wiki/Webring">Webring</a> für die Dichtung.</p>
|
||||||
<section id="members">
|
<section id="members">
|
||||||
{{ . }}
|
<table><tbody>{{ . }}</tbody></table>
|
||||||
</section>
|
</section>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user