From: Clinton Ebadi Date: Mon, 6 Oct 2014 03:16:04 +0000 (-0400) Subject: scripts: Fix lazy chown syntax X-Git-Tag: release_20141005^2~1 X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/commitdiff_plain/fb9aeb18e3091035c1d82484a4348418f2f32adf scripts: Fix lazy chown syntax user.group doesn't work when user has a dot in it. Use : in domtool-addcert, and update other scripts for consistency. --- diff --git a/scripts/domtool-addcert b/scripts/domtool-addcert index 9b5495b..21eddba 100755 --- a/scripts/domtool-addcert +++ b/scripts/domtool-addcert @@ -30,7 +30,7 @@ if [ "$2" != '-unsafe' ]; then if [ -z "`getent passwd $USER`" ]; then echo "$USER does not exist. This must be a server principal." else - chown -R $USER.nogroup $KEYDIR + chown -R $USER:nogroup $KEYDIR fi fi diff --git a/scripts/domtool-publish b/scripts/domtool-publish index 0771867..cd5e196 100755 --- a/scripts/domtool-publish +++ b/scripts/domtool-publish @@ -64,7 +64,7 @@ case $1 in fi /usr/bin/rsync -r --delete ${VMAILDB}/ /etc/courier/userdb /usr/sbin/makeuserdb - /bin/chown -R domtool.nogroup /etc/courier/userdb + /bin/chown -R domtool:nogroup /etc/courier/userdb /bin/cat /etc/courier/userdb/* >/etc/courier/exim /bin/chmod o-r /etc/courier/exim /usr/sbin/exim_dbmbuild /etc/courier/exim /etc/courier/exim.dat @@ -79,10 +79,10 @@ case $1 in /bin/grep $2 /var/log/exim4/mainlog ;; apache-fixperms) - /bin/chown -R domtool.nogroup /var/log/apache2/user + /bin/chown -R domtool:nogroup /var/log/apache2/user ;; apache1.3-fixperms) - /bin/chown -R domtool.nogroup /var/log/apache/user + /bin/chown -R domtool:nogroup /var/log/apache/user ;; users) /bin/cp /var/domtool/waklog.conf /etc/apache2/