diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-04 16:07:10 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-04 16:07:10 +0200 |
commit | cdc1a1945c631863a2041443a7e1f73eb9517a82 (patch) | |
tree | ad88652981116919df6005b30464492937cf1b3e | |
parent | ec2ad796317bc7b150dab02421e0ce1cec39cb6c (diff) | |
download | nixos-cdc1a1945c631863a2041443a7e1f73eb9517a82.tar nixos-cdc1a1945c631863a2041443a7e1f73eb9517a82.tar.gz nixos-cdc1a1945c631863a2041443a7e1f73eb9517a82.tar.bz2 nixos-cdc1a1945c631863a2041443a7e1f73eb9517a82.tar.xz nixos-cdc1a1945c631863a2041443a7e1f73eb9517a82.zip |
permissions
-rw-r--r-- | ymir.nix | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 | ''; |