premake the dataDir for srv
This commit is contained in:
parent
a9d8aa2591
commit
38fdd7725d
@ -26,10 +26,12 @@
|
|||||||
|
|
||||||
bin = pkgs.writeScript "mediocre-blog-srv-bin" ''
|
bin = pkgs.writeScript "mediocre-blog-srv-bin" ''
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
mkdir -p "${config.dataDir}"
|
||||||
exec ${build}/bin/mediocre-blog ${toString opts}
|
exec ${build}/bin/mediocre-blog ${toString opts}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
runScript = pkgs.writeScriptBin "run-mediocre-blog" ''
|
runScript = pkgs.writeScriptBin "run-mediocre-blog" ''
|
||||||
|
mkdir -p "${config.dataDir}"
|
||||||
go run ./cmd/mediocre-blog/main.go ${toString opts}
|
go run ./cmd/mediocre-blog/main.go ${toString opts}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user