ConfigureServer() {
#check if server is configured on this machine
postinstallfile=$installDir/framework/etc/postinstall.dat
if [ -f $postinstallfile ]; then
hostname=`cat $postinstallfile`
if [ "$hostname" = "`hostname`" ]; then
return
fi
fi
#New machine, should run configurations
if [ -f $postinstallfile ]; then
rm -rf $postinstallfile
fi
ConfigureWine
#create flag file to ensure this step is not run again
hostname > $postinstallfile
}