From: mwolson_admin Date: Wed, 12 Dec 2007 17:24:56 +0000 (-0500) Subject: create-user: Make .domtool symlink with correct ownership X-Git-Url: https://git.hcoop.net/hcoop/scripts.git/commitdiff_plain/74e97319a964101a6ae1271a957caf09a768a91d create-user: Make .domtool symlink with correct ownership Apparently, it is not possible to change the ownership of a symlink that is in AFS. Presumably, that information is not paid attention to. It might just be for cosmetics that we do this. I'm leaving the existing symlinks in user directories alone, because I'd basically have to remove the symlink and make a new one, and I'd rather not disrupt service. --- diff --git a/create-user b/create-user index 9a9276a..ce6304f 100755 --- a/create-user +++ b/create-user @@ -194,8 +194,7 @@ mkdir -p $HOMEPATH/.public/.domtool chown $USER:nogroup $HOMEPATH/.public/.domtool test -e $HOMEPATH/.domtool || \ test -L $HOMEPATH/.domtool || \ - ln -s $HOMEPATH/.public/.domtool $HOMEPATH/.domtool -test -e $HOMEPATH/.domtool && chown $USER:nogroup $HOMEPATH/.domtool + sudo -u $USER ln -s $HOMEPATH/.public/.domtool $HOMEPATH/.domtool # Gitweb hosting test -L /var/cache/git/$USER || \