#!/bin/sh
# ******************************************************************************
# This script is used to create the directories needed by ESR for the web servers 
#
# ******************************************************************************

echo "Setting up initial ESR web server environment.Copying the weblogic.conf."
cp weblogic.conf /etc/httpd/conf.d 

echo "Copying ESRUnavailablePage under /var/www/html/status." 
mkdir /var/www/html/status 
chmod 755 /var/www/html/status 
cp ESRUnavailablePage/*.* /var/www/html/status
chmod 644 /var/www/html/status/ESR_structure.css 
chmod 644 /var/www/html/status/ESR_Unavailable.html 
chmod 644 /var/www/html/status/shadowFillBkg.gif 
chmod 644 /var/www/html/status/spacer.gif 
chmod 644 /var/www/html/status/vha_seal.jpg 

echo "Creating webhelp directory."
mkdir /tmp/webhelpArchive
mkdir /var/www/html/webhelp

echo "Completed ESR web server environment setup."

