changed to unmaintained
[aaf/authz.git] / auth / unix / firstAsRoot.sh
1 #
2 . ./l.props
3 if [ -z "$1" ]; then
4   echo "Enter 'user:group' for the directory after creation"
5   read CHOWN
6 else
7   CHOWN="$1"    
8 fi
9
10
11 for D in $INSTALL_DIR $ORG_DIR; do
12   if [ -e $D ]; then
13     echo "$D already exists"
14   else
15     mkdir -p $D 
16     echo "$D created"
17   fi
18   echo "Setting Ownership of $D to $CHOWN"
19   chown $CHOWN $D
20 done