diff options
author | makefu <github@syntax-fehler.de> | 2015-10-17 23:51:02 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2015-10-17 23:51:02 +0200 |
commit | fa8abf4a270596ec418f923216c57c95c50cf7c8 (patch) | |
tree | ac3727825defc093aa1c12e7f1be0df2510f2d4d /makefu/3modules/tinc_graphs.nix | |
parent | c9a3d1a3d9c59e52a7866d7a947ee01a117548e3 (diff) |
m 3,5 tinc_graphs: use new tinc_graphs
Diffstat (limited to 'makefu/3modules/tinc_graphs.nix')
-rw-r--r-- | makefu/3modules/tinc_graphs.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/makefu/3modules/tinc_graphs.nix b/makefu/3modules/tinc_graphs.nix index 62d607527..ff2f55873 100644 --- a/makefu/3modules/tinc_graphs.nix +++ b/makefu/3modules/tinc_graphs.nix @@ -83,7 +83,9 @@ let ExecStartPre = pkgs.writeScript "tinc_graphs-init" '' #!/bin/sh - mkdir -p "${external_dir}" "${internal_dir}" + if ! test -e "${cfg.workingDir}/internal/index.html"; then + cp -fr "$(${pkgs.tinc_graphs}/bin/tincstats-static-dir)/internal/" "${internal_dir}" + fi ''; ExecStart = "${pkgs.tinc_graphs}/bin/all-the-graphs"; @@ -94,10 +96,10 @@ let # this is needed because homedir is created with 700 chmod 755 "${cfg.workingDir}" ''; + PrivateTmp = "yes"; User = "root"; # tinc cannot be queried as user, # seems to be a tinc-pre issue - privateTmp = true; }; }; |