diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2021-08-26 21:28:27 -0600 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2021-08-26 21:28:27 -0600 |
commit | 38fdd7725da4be8e6657f15f2511a32454a6dff6 (patch) | |
tree | 6cc37aed692398d6c60851224fd97c7314174967 | |
parent | a9d8aa2591cd03fe1a9da72bab8d311e4840e8f1 (diff) |
premake the dataDir for srv
-rw-r--r-- | srv/default.nix | 2 |
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} ''; |