From 38fdd7725da4be8e6657f15f2511a32454a6dff6 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Thu, 26 Aug 2021 21:28:27 -0600 Subject: premake the dataDir for srv --- srv/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'srv') diff --git a/srv/default.nix b/srv/default.nix index d7a80f7..4149ac9 100644 --- a/srv/default.nix +++ b/srv/default.nix @@ -26,10 +26,12 @@ bin = pkgs.writeScript "mediocre-blog-srv-bin" '' #!/bin/sh + mkdir -p "${config.dataDir}" exec ${build}/bin/mediocre-blog ${toString opts} ''; runScript = pkgs.writeScriptBin "run-mediocre-blog" '' + mkdir -p "${config.dataDir}" go run ./cmd/mediocre-blog/main.go ${toString opts} ''; -- cgit v1.2.3