From 2f3e882514525d71c6ddadfcf967eba0e0453f61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yannik=20R=C3=B6del?= Date: Wed, 11 May 2022 17:34:58 +0200 Subject: [PATCH] Ensure the temporary upload directory exists Closes #25 --- flake.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 78931df..0e95564 100644 --- a/flake.nix +++ b/flake.nix @@ -64,11 +64,10 @@ ExposedPorts = { "80/tcp" = {}; }; - Cmd = [ - "${pkgs.lighttpd}/bin/lighttpd" - "-Df" - packages.lighttpdConfig - ]; + Cmd = [ (pkgs.writeShellScript "angestoepselt-site" '' + ${pkgs.coreutils}/bin/mkdir -p /var/tmp + ${pkgs.lighttpd}/bin/lighttpd -Df ${packages.lighttpdConfig} + '') ]; }; };