about summary refs log tree commit diff
path: root/modules/services/mail
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-05-17 19:43:32 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-05-17 19:43:32 +0000
commit801cd7402cf043e2c665e3fe6767aad5eb919ed2 (patch)
treebbb5a15400661fa42032d9e2c2e58a181310a209 /modules/services/mail
parentf889ebc4881b45d5238028f5469377b4c9416984 (diff)
downloadnixlib-801cd7402cf043e2c665e3fe6767aad5eb919ed2.tar
nixlib-801cd7402cf043e2c665e3fe6767aad5eb919ed2.tar.gz
nixlib-801cd7402cf043e2c665e3fe6767aad5eb919ed2.tar.bz2
nixlib-801cd7402cf043e2c665e3fe6767aad5eb919ed2.tar.lz
nixlib-801cd7402cf043e2c665e3fe6767aad5eb919ed2.tar.xz
nixlib-801cd7402cf043e2c665e3fe6767aad5eb919ed2.tar.zst
nixlib-801cd7402cf043e2c665e3fe6767aad5eb919ed2.zip
* Don't use ‘chown user.group’ since that syntax is not officially
  supported (you're supposed to say ‘chown user:group’).

svn path=/nixos/trunk/; revision=34161
Diffstat (limited to 'modules/services/mail')
-rw-r--r--modules/services/mail/dovecot.nix2
-rw-r--r--modules/services/mail/dovecot2.nix2
-rw-r--r--modules/services/mail/postfix.nix6
3 files changed, 5 insertions, 5 deletions
diff --git a/modules/services/mail/dovecot.nix b/modules/services/mail/dovecot.nix
index 4c6ee85ac31c..ff41c8f43025 100644
--- a/modules/services/mail/dovecot.nix
+++ b/modules/services/mail/dovecot.nix
@@ -119,7 +119,7 @@ in
         preStart =
           ''
             ${pkgs.coreutils}/bin/mkdir -p /var/run/dovecot /var/run/dovecot/login
-            ${pkgs.coreutils}/bin/chown -R ${cfg.user}.${cfg.group} /var/run/dovecot
+            ${pkgs.coreutils}/bin/chown -R ${cfg.user}:${cfg.group} /var/run/dovecot
           '';
 
         exec = "${pkgs.dovecot}/sbin/dovecot -F -c ${confFile}";
diff --git a/modules/services/mail/dovecot2.nix b/modules/services/mail/dovecot2.nix
index 15a0ecce325b..c7ae59afa203 100644
--- a/modules/services/mail/dovecot2.nix
+++ b/modules/services/mail/dovecot2.nix
@@ -128,7 +128,7 @@ in
         preStart =
           ''
             ${pkgs.coreutils}/bin/mkdir -p /var/run/dovecot2 /var/run/dovecot2/login
-            ${pkgs.coreutils}/bin/chown -R ${cfg.user}.${cfg.group} /var/run/dovecot2
+            ${pkgs.coreutils}/bin/chown -R ${cfg.user}:${cfg.group} /var/run/dovecot2
           '';
 
         exec = "${pkgs.dovecot_2_0}/sbin/dovecot -F -c ${confFile}";
diff --git a/modules/services/mail/postfix.nix b/modules/services/mail/postfix.nix
index f98c9e6b0a74..d4314236a9b4 100644
--- a/modules/services/mail/postfix.nix
+++ b/modules/services/mail/postfix.nix
@@ -329,10 +329,10 @@ in
               ${pkgs.coreutils}/bin/mkdir -p /var/spool/mail /var/postfix/conf /var/postfix/queue
             fi
 
-            ${pkgs.coreutils}/bin/chown -R ${user}.${group} /var/postfix
-            ${pkgs.coreutils}/bin/chown -R ${user}.${setgidGroup} /var/postfix/queue
+            ${pkgs.coreutils}/bin/chown -R ${user}:${group} /var/postfix
+            ${pkgs.coreutils}/bin/chown -R ${user}:${setgidGroup} /var/postfix/queue
             ${pkgs.coreutils}/bin/chmod -R ug+rwX /var/postfix/queue
-            ${pkgs.coreutils}/bin/chown root.root /var/spool/mail
+            ${pkgs.coreutils}/bin/chown root:root /var/spool/mail
             ${pkgs.coreutils}/bin/chmod a+rwxt /var/spool/mail
 
             ln -sf ${pkgs.postfix}/share/postfix/conf/* /var/postfix/conf