Use automounted $HOME instead of static mount.
authorshort <>
Thu, 15 Apr 2004 09:58:15 +0000 (09:58 +0000)
committershort <>
Thu, 15 Apr 2004 09:58:15 +0000 (09:58 +0000)
bin/deployme

index 8fbb9d6..84709cb 100755 (executable)
@@ -8,7 +8,7 @@ if [ $# != 1 ];then
 fi
 
 NFSHOME="jsc-nfs.czech.sun.com"
-HOMEPATH="/home.local/$USER"
+HOMEPATH="/net/$NFSHOME/export/home/$USER"
 REALNAME="`perl -e '$_=(getpwnam "'"$USER"'")[6];s/^root for //;print;'`"
 
 ssh -t root@"$1" '
@@ -16,9 +16,6 @@ ssh -t root@"$1" '
        grep "^'$USER':" /etc/passwd && exit 1
        useradd '$USER'
        sed '\''s#^'$USER':.*$#'$USER':x:0:0:root for '"$REALNAME:$HOMEPATH"':/bin/bash#'\'' </etc/passwd >/etc/passwd.'$USER';cat /etc/passwd.'$USER' >/etc/passwd;rm -f /etc/passwd.'$USER'
-       echo >>/etc/vfstab '"`echo -e "$NFSHOME:$HOMEPATH"'\t-\t'"$HOMEPATH"'\tnfs\t-\tyes\tintr,bg'`"'
-       mkdir -p '"$HOMEPATH"'
-       mount '"$HOMEPATH"'
        passwd -r files '$USER'
        echo done
        '