summaryrefslogtreecommitdiffstats
path: root/auth/unix/firstAsRoot.sh
blob: 8a66130b35c604e499254610ee75fab2a235fddf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
. ./l.props
if [ -z "$1" ]; then
  echo "Enter 'user:group' for the directory after creation"
  read CHOWN
else
  CHOWN="$1"	
fi


for D in $INSTALL_DIR $ORG_DIR; do
  if [ -e $D ]; then
    echo "$D already exists"
  else
    mkdir -p $D 
    echo "$D created"
  fi
  echo "Setting Ownership of $D to $CHOWN"
  chown $CHOWN $D
done