From cdc1a1945c631863a2041443a7e1f73eb9517a82 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 4 May 2016 16:07:10 +0200 Subject: permissions --- ymir.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ymir.nix b/ymir.nix index fd5bbb90..969fabe1 100644 --- a/ymir.nix +++ b/ymir.nix @@ -100,10 +100,10 @@ in rec { [[ ! -f "''${tmpFile}" || $(stat -c '%s' "''${tmpFile}") == "0" ]] && exit 3; mkdir -p "''${baseDir}/''${prefix}" - mv $tmpFile "''${baseDir}/''${prefix}/''${filename}" + mv "''${tmpFile}" "''${baseDir}/''${prefix}/''${filename}" - chmod 750 "''${baseDir}/''${prefix}" - chmod 640 "''${baseDir}/''${prefix}/''${filename}" + chmod 755 "''${baseDir}/''${prefix}" + chmod 644 "''${baseDir}/''${prefix}/''${filename}" printf "%s/%s/%s" "''${baseUrl}" "''${prefix}" "''${filename}" ''; -- cgit v1.2.3