Don't exit if /.xcat already exists. This is
consistent with the other setup scripts. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@125 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
5887cd2092
commit
8691edc84a
@ -17,18 +17,10 @@ else
|
||||
USERHOME=`grep ^$1 /etc/passwd | cut -d: -f6`
|
||||
fi
|
||||
|
||||
# the home dir for root is "/" on AIX
|
||||
# - need to avoid "//.xcat" below
|
||||
# - should probably redo the logic below at some point
|
||||
if test $USERHOME = /
|
||||
then
|
||||
USERHOME=
|
||||
fi
|
||||
|
||||
XCATCADIR=$XCATDIR/ca
|
||||
|
||||
if [ -e $USERHOME/.xcat ]; then
|
||||
exit 0
|
||||
# exit 0
|
||||
echo -n "$USERHOME/.xcat already exists, delete and start over (y/n)?"
|
||||
read ANSWER
|
||||
if [ "$ANSWER" != "y" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user