#!/bin/sh
#This script is a wrapper of i.appservenv, provides the list of input 
#and output files to i.appservenv which does the token replacements.   

echo "Starting appservenv"
export INSTALL_DIR=$1
export CLIENT_BASEDIR=$2
export ASCONFIG_HOME=$CLIENT_BASEDIR/config
cat $INSTALL_DIR/install/filelistb | sh $INSTALL_DIR/install/i.appservenv
for i in `cut -d" " -f2 $INSTALL_DIR/install/filelistb`
do
   chmod 755 $i
done
exit 0


