Add StandAlone Unix Configurations
[aaf/authz.git] / auth / unix / firstAsRoot.sh
diff --git a/auth/unix/firstAsRoot.sh b/auth/unix/firstAsRoot.sh
new file mode 100644 (file)
index 0000000..8a66130
--- /dev/null
@@ -0,0 +1,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