diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-06-03 13:25:26 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-06-03 13:25:26 +0200 |
commit | 9247b444929061f32be9b003621e1da555ebc770 (patch) | |
tree | d31ca3f426d28a984124de9d85bd12223c90422f /lib | |
parent | 8164ed90c7fdd93fd035bce3dc1b3fc6bde9e30e (diff) | |
download | Nix-9247b444929061f32be9b003621e1da555ebc770.tar.gz Nix-9247b444929061f32be9b003621e1da555ebc770.tar.zst Nix-9247b444929061f32be9b003621e1da555ebc770.zip |
Fix files watcher path
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/default.nix | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/private/default.nix b/lib/private/default.nix index b04f7b3..c7d753a 100644 --- a/lib/private/default.nix +++ b/lib/private/default.nix | |||
@@ -17,17 +17,4 @@ | |||
17 | echo | 17 | echo |
18 | } | 18 | } |
19 | ''; | 19 | ''; |
20 | |||
21 | phpFpmPreStart = { app, varDir, keyFiles, actions }: '' | ||
22 | if [ ! -f "${varDir}/currentWebappDir" -o \ | ||
23 | ! -f "${varDir}/currentKey" -o \ | ||
24 | "${app}" != "$(cat ${varDir}/currentWebappDir 2>/dev/null)" ] \ | ||
25 | || ! sha512sum -c --status ${varDir}/currentKey; then | ||
26 | pushd ${app} > /dev/null | ||
27 | ${builtins.concatStringsSep "\n " actions} | ||
28 | popd > /dev/null | ||
29 | echo -n "${app}" > ${varDir}/currentWebappDir | ||
30 | sha512sum ${builtins.concatStringsSep " " keyFiles} > ${varDir}/currentKey | ||
31 | fi | ||
32 | ''; | ||
33 | } | 20 | } |