awips2/deltaScripts/archived/11.9.0-7/cleanGFESuiteLogs.sh
Richard Peter 46a94c88cd Issue #2854: Reorganize deltaScripts
Former-commit-id: c8e373c098 [formerly 56745c942e [formerly 469c2c597b80fd725f474e0d645656e4054fd69a]]
Former-commit-id: 56745c942e
Former-commit-id: 09f41a6b31
2014-04-30 13:03:44 -05:00

24 lines
623 B
Bash

#!/bin/bash
# This script will remove any existing log files from
# /awips2/GFESuite/logs.
#
# This update needs to be performed with build 11.9.0-7.
# This update is for both the database and the processing
# servers.
echo ""
echo "Press Enter to perform the updates Ctrl-C to quit."
read done
if [ -d /awips2/GFESuite/logs ]; then
echo "INFO: Removing GFESuite Logs."
rm -rf /awips2/GFESuite/logs/*
if [ $? -ne 0 ]; then
echo "ERROR: Unable to remove the contents of /awips2/GFESuite/logs."
echo "FATAL: Update Failed!"
exit 1
fi
fi
echo "INFO: The update finished successfully."
exit 0