awips2/deltaScripts/11.9.0-7/cleanGFESuiteLogs.sh
root 7dbd17a5aa Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 133dc97f67 [formerly a02aeb236c] [formerly 9f19e3f712] [formerly 133dc97f67 [formerly a02aeb236c] [formerly 9f19e3f712] [formerly 06a8b51d6d [formerly 9f19e3f712 [formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]]]
Former-commit-id: 06a8b51d6d
Former-commit-id: 9bb8decbcf [formerly 8e80217e59] [formerly 377dcd10b9 [formerly 3360eb6c5f]]
Former-commit-id: 377dcd10b9
Former-commit-id: e2ecdcfe33
2012-01-06 08:55:05 -06: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