X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=local%2Froundcube-chpasswd;h=96b3a0b3be0e276440d8bc5d0cb32f7415f3dace;hp=92cf455d998dfea8d361755397691358e09602eb;hb=9a47ab55598b61edab0403edb4a906b56ecb22c2;hpb=b75d4503ef9c919231c0c02daf5a1ed1e57c73af diff --git a/local/roundcube-chpasswd b/local/roundcube-chpasswd index 92cf455..96b3a0b 100755 --- a/local/roundcube-chpasswd +++ b/local/roundcube-chpasswd @@ -1,14 +1,14 @@ #!/bin/sh -efu -test "$(id -n -u)" = php5_roundcube +test "$(id -n -u)" = php_roundcube IFS=: read -r user password IFS=@ read -r user domain <<-EOF $user EOF -test "${user:+set"}" -test "${domain:+set"}" -test "${password:+set"}" +test "${user:+set}" +test "${domain:+set}" +test "${password:+set}" umask 0077 dir_passwd=/etc/dovecot/"$domain"