summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--srv/default.nix2
1 files changed, 2 insertions, 0 deletions
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}
'';