summary refs log tree commit diff
path: root/nixos/modules/services/network-filesystems/yandex-disk.nix
diff options
context:
space:
mode:
authorAlex Ivanov <gnidorah@users.noreply.github.com>2016-11-12 11:34:35 +0300
committerAlex Ivanov <gnidorah@users.noreply.github.com>2016-11-12 12:02:33 +0300
commit5f8aa15e846e14bdf034caaee908c321277aad22 (patch)
tree95cd76a4db6ce903e1a395a99e7af27261caf637 /nixos/modules/services/network-filesystems/yandex-disk.nix
parent6be676014444e7f73d48edd00c7a46f62a74c5fb (diff)
downloadnixpkgs-5f8aa15e846e14bdf034caaee908c321277aad22.tar
nixpkgs-5f8aa15e846e14bdf034caaee908c321277aad22.tar.gz
nixpkgs-5f8aa15e846e14bdf034caaee908c321277aad22.tar.bz2
nixpkgs-5f8aa15e846e14bdf034caaee908c321277aad22.tar.lz
nixpkgs-5f8aa15e846e14bdf034caaee908c321277aad22.tar.xz
nixpkgs-5f8aa15e846e14bdf034caaee908c321277aad22.tar.zst
nixpkgs-5f8aa15e846e14bdf034caaee908c321277aad22.zip
yandex-disk service: correct permissions
Diffstat (limited to 'nixos/modules/services/network-filesystems/yandex-disk.nix')
-rw-r--r--nixos/modules/services/network-filesystems/yandex-disk.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/network-filesystems/yandex-disk.nix b/nixos/modules/services/network-filesystems/yandex-disk.nix
index 982b6ca5ea7..d9e35e3953f 100644
--- a/nixos/modules/services/network-filesystems/yandex-disk.nix
+++ b/nixos/modules/services/network-filesystems/yandex-disk.nix
@@ -86,7 +86,7 @@ in
         chown ${u} ${dir}
 
         if ! test -d "${cfg.directory}" ; then
-          mkdir -p -m 755 ${cfg.directory} ||
+          (mkdir -p -m 755 ${cfg.directory} && chown ${u} ${cfg.directory}) ||
             exit 1
         fi