#!/bin/sh
# $Id: paranoid,v 1.1.2.1 2005/03/14 15:08:05 jb122832 Exp $
#
# This script verifies that directories and files exist and have 
# the correct permissions.  This code is redunant because
# the rpm's should be doing this, but we do it here just to
# be safe.
#
# I have separated this out from the main installer
# code to not get it confused with main installer logic.
#
# This script should be run out of the postinstall script
#

MKDIR=/bin/mkdir
CHOWN=/bin/chown

#
# /var/tomcat4
#
DIR=/var/tomcat4
if [ ! -d "$DIR" ] ; then
  $MKDIR -p "$DIR"
fi
$CHOWN -R tomcat4:tomcat4 "$DIR" 


#
# /var/log/tomcat4
#
DIR=/var/log/tomcat4
if [ ! -d "$DIR" ] ; then
  $MKDIR -p "$DIR"
fi
$CHOWN -R tomcat4:tomcat4 "$DIR" 


#
# /scs
#
DIR=/scs
if [ ! -d "$DIR" ] ; then
  $MKDIR -p "$DIR"
fi


#
# /usr/lib/apache
#
DIR=/usr/lib/apache
if [ ! -d "$DIR" ] ; then
  $MKDIR -p "$DIR"
fi


