X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=local%2Fdovecot-user-add;h=e74a1103ebe8b950f5c4543e349ae9c1421e2046;hp=5e9c35f02cd493edaa563053d1aac4d806a8215a;hb=725a73b1defd5784861e0f6876b27c570ee7303f;hpb=b0da1a3b6963f3f6d7611770c8798f8dd7cac7d4 diff --git a/local/dovecot-user-add b/local/dovecot-user-add index 5e9c35f..e74a110 100755 --- a/local/dovecot-user-add +++ b/local/dovecot-user-add @@ -16,8 +16,8 @@ first_valid_gid=30000 IFS=@ read -r user domain <<-EOF $1 EOF -test "${user:+set"}" -test "${domain:+set"}" +test "${user:+set}" +test "${domain:+set}" shift # setup_nss @@ -46,7 +46,7 @@ shift sudo chmod -t ~mail/acl/dovecot."$domain" # NOTE: permet les mv shared.db{.lock,} effectués par dovecot - sudo install -d -o mail -g php5_roundcube -m 1770 \ + sudo install -d -o mail -g php_roundcube -m 1770 \ /etc/dovecot/dovecot."$domain" sudo install -d -o mail -g postfix -m 750 \ /etc/mail/dovecot @@ -201,5 +201,5 @@ shift !! EOF sort -k 1,1 -t : | - sudo install -o php5_roundcube -g php5_roundcube -m 0640 /dev/stdin "$new_passwd" + sudo install -o php_roundcube -g php_roundcube -m 0640 /dev/stdin "$new_passwd" sudo mv -f "$new_passwd" "$old_passwd"