diff options
author | lassulus <lass@aidsballs.de> | 2015-10-18 04:27:24 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-10-18 04:27:24 +0200 |
commit | 5f67567d8527db8a83944fcda230394ce741baf0 (patch) | |
tree | 1702b062a349b29a046dae192cc05ce84c9ae947 /makefu/3modules/tinc_graphs.nix | |
parent | 2e4573d2dd9f69da1dbd40c41ee70615171abebe (diff) | |
parent | fa8abf4a270596ec418f923216c57c95c50cf7c8 (diff) |
Merge remote-tracking branch 'pnp/master'
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 62d60752..ff2f5587 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; }; }; |