premake the dataDir for srv

This commit is contained in:
Brian Picciano 2021-08-26 21:28:27 -06:00
parent a9d8aa2591
commit 38fdd7725d

View File

@ -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}
'';