about summary refs log tree commit diff
path: root/modules/server
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-04-27 21:05:37 +0000
committerAlyssa Ross <hi@alyssa.is>2020-04-27 21:05:37 +0000
commit45ad51dc5c564c399fe8ec9272abe691a2c2901b (patch)
tree213b0674654314060743e503c92b10e7398b919f /modules/server
parenta4e6c7d26af697f4346cacb7ab18dcd7fcfc056e (diff)
downloadnixlib-45ad51dc5c564c399fe8ec9272abe691a2c2901b.tar
nixlib-45ad51dc5c564c399fe8ec9272abe691a2c2901b.tar.gz
nixlib-45ad51dc5c564c399fe8ec9272abe691a2c2901b.tar.bz2
nixlib-45ad51dc5c564c399fe8ec9272abe691a2c2901b.tar.lz
nixlib-45ad51dc5c564c399fe8ec9272abe691a2c2901b.tar.xz
nixlib-45ad51dc5c564c399fe8ec9272abe691a2c2901b.tar.zst
nixlib-45ad51dc5c564c399fe8ec9272abe691a2c2901b.zip
modules/ftp: fix with no content
This would fail if nothing used the module, because $out would never be
created.
Diffstat (limited to 'modules/server')
-rw-r--r--modules/server/ftp/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/server/ftp/default.nix b/modules/server/ftp/default.nix
index 2b444ae2b32f..78f7c794ce1f 100644
--- a/modules/server/ftp/default.nix
+++ b/modules/server/ftp/default.nix
@@ -32,6 +32,7 @@ in
       enableACME = true;
 
       root = pkgs.runCommandNoCC "ftp.qyliss.net" {} ''
+        mkdir $out
         ${concatStrings (mapAttrsToList (httpPath: diskPath: ''
           mkdir -p "$out/$(dirname ${escapeShellArg httpPath})"
           ln -s ${escapeShellArg diskPath} $out/${escapeShellArg httpPath}