summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-05-04 16:07:10 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2016-05-04 16:07:10 +0200
commitcdc1a1945c631863a2041443a7e1f73eb9517a82 (patch)
treead88652981116919df6005b30464492937cf1b3e
parentec2ad796317bc7b150dab02421e0ce1cec39cb6c (diff)
downloadnixos-cdc1a1945c631863a2041443a7e1f73eb9517a82.tar
nixos-cdc1a1945c631863a2041443a7e1f73eb9517a82.tar.gz
nixos-cdc1a1945c631863a2041443a7e1f73eb9517a82.tar.bz2
nixos-cdc1a1945c631863a2041443a7e1f73eb9517a82.tar.xz
nixos-cdc1a1945c631863a2041443a7e1f73eb9517a82.zip
permissions
-rw-r--r--ymir.nix6
1 files 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 {
100 [[ ! -f "''${tmpFile}" || $(stat -c '%s' "''${tmpFile}") == "0" ]] && exit 3; 100 [[ ! -f "''${tmpFile}" || $(stat -c '%s' "''${tmpFile}") == "0" ]] && exit 3;
101 101
102 mkdir -p "''${baseDir}/''${prefix}" 102 mkdir -p "''${baseDir}/''${prefix}"
103 mv $tmpFile "''${baseDir}/''${prefix}/''${filename}" 103 mv "''${tmpFile}" "''${baseDir}/''${prefix}/''${filename}"
104 104
105 chmod 750 "''${baseDir}/''${prefix}" 105 chmod 755 "''${baseDir}/''${prefix}"
106 chmod 640 "''${baseDir}/''${prefix}/''${filename}" 106 chmod 644 "''${baseDir}/''${prefix}/''${filename}"
107 107
108 printf "%s/%s/%s" "''${baseUrl}" "''${prefix}" "''${filename}" 108 printf "%s/%s/%s" "''${baseUrl}" "''${prefix}" "''${filename}"
109 ''; 109 '';