###########################################################
# Created by Bill Reilly Agilent Technologies on 10/16/02 #
# Locks Config Manager and Sys Admin                      #
###########################################################

LOCKFILE1="/var/opt/platform7/tmp/uf07_C13.tlf"
LOCKFILE2="/var/opt/platform7/tmp/uf07_C14.tlf"
if [[ -h $LOCKFILE1 ]]
then
  echo "ALREADY LOCKED"
  exit
elif [[ -h $LOCKFILE2 ]]
then
  echo "ALREADY LOCKED"
  exit
fi
echo "You are about to lock the config database"
echo "Are you sure that you want to do this ?"
read ANS
if [[ "$ANS" != [Yy]* ]]
then
  echo "Action cancelled."
  exit
fi
  echo "What is your last name?"
  read LASTNAME
  ln -s ws00_$LASTNAME /var/opt/platform7/tmp/uf07_C13.tlf
  ln -s ws00_$LASTNAME /var/opt/platform7/tmp/uf07_C14.tlf
  echo "LOCKED.... Use unlocketr when you are finished with the database"




