#!/bin/sh
# $Id: //depot/prod/capstan/main/src/bin/smo_setup.skel#4 $

DEFAULT_ACCOUNT="oracle"
DEFAULT_GROUP="dba"

printf "SMO post installation configuration:\n\n"
printf "OS account that will run SMO [${DEFAULT_ACCOUNT}]: "
read ACCOUNT
ACCOUNT=${ACCOUNT:-${DEFAULT_ACCOUNT}}

printf "OS group that will run SMO [${DEFAULT_GROUP}]: "
read GROUP
GROUP=${GROUP:-${DEFAULT_GROUP}}

smo_dir="/opt/NetApp/smo"

chown -R root:bin ${smo_dir}
chown ${ACCOUNT}:${GROUP} ${smo_dir}/bin/smo

chown root:${GROUP} ${smo_dir}/log
chmod 0770 ${smo_dir}/log
chown root:${GROUP} ${smo_dir}/tmp
chmod 0777 ${smo_dir}/tmp

chmod 1775 ${smo_dir}/profiles


