awips2/tools/devAutoDeploy/devCave/server-auto-pre-uninstall.sh
root 9f19e3f712 Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 64fa9254b946eae7e61bbc3f513b7c3696c4f54f
2012-01-06 08:55:05 -06:00

34 lines
1.1 KiB
Bash

#!/bin/sh
#----------------------------------------------------------------------
# Auto umount script for the EDEX server.
#----------------------------------------------------------------------
DATE=`date`
EDEXINSTALLFOLDER=/awips2
NASSERVER=dx2
echo "**************************************************************************************"
echo "Auto Pre Install Processing - $DATE"
echo "**************************************************************************************"
echo "Making hdf5 directory"
mkdir -p $EDEXINSTALLFOLDER/edex/data/hdf5
chown -R ${EDEXUSER}:${EDEXUSER} $EDEXINSTALLFOLDER
chmod -Rf 777 $EDEXINSTALLFOLDER
echo "unmounting to hdf5 on ${NASSERVER}"
umount ${NASSERVER}:/hdf5 $EDEXINSTALLFOLDER/edex/data
echo "mount -l (verify unmount of directory worked)"
mount
echo ""
DATE=`date`
echo "**************************************************************************************"
echo "EDEX Unmounting for Uninstall Processing Completed At $DATE"
echo "**************************************************************************************"
echo ""
exit