From d0c4d8c7471168c9b8dcfe701dd0e8ffb9218898 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Wed, 5 Mar 2014 20:53:36 -0800 Subject: [PATCH] install.sh: use chgrp instead of chown :group Some versions of chown accept an empty user to just change the group (e.g. chown :mygroup myfile), but this is neither portable nor part of the POSIX standard. Replace chown :group with chgrp group to be more widely compatible. --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 3bf9fab..4fbf48b 100755 --- a/install.sh +++ b/install.sh @@ -107,8 +107,8 @@ echo "*/30 * * * * /usr/bin/nice -n 18 $cfg_basedir/jobd/jobd.sh -q --all-once" echo "*** Setting up repository root..." mkdir -p "$cfg_reporoot" "$cfg_reporoot-recyclebin" if [ "$cfg_owning_group" ]; then - chown :"$cfg_owning_group" "$cfg_reporoot" || echo "WARNING: Cannot chgrp $cfg_owning_group $cfg_reporoot" - chown :"$cfg_owning_group" "$cfg_reporoot-recyclebin" || echo "WARNING: Cannot chgrp $cfg_owning_group $cfg_reporoot-recyclebin" + chgrp "$cfg_owning_group" "$cfg_reporoot" || echo "WARNING: Cannot chgrp $cfg_owning_group $cfg_reporoot" + chgrp "$cfg_owning_group" "$cfg_reporoot-recyclebin" || echo "WARNING: Cannot chgrp $cfg_owning_group $cfg_reporoot-recyclebin" fi chmod 02775 "$cfg_reporoot" || echo "WARNING: Cannot chmod $cfg_reporoot properly" chmod 02775 "$cfg_reporoot-recyclebin" || echo "WARNING: Cannot chmod $cfg_reporoot-recyclebin properly" -- 2.11.4.GIT