ASM #16929 Service Backup log cleanup script issue on test systems
Change-Id: I09f184a01081cf025854da60a298345b29ffc15f Former-commit-id: 66fc128c8be25753904dfff65840334bfdff7963
This commit is contained in:
parent
18b2de3fdf
commit
d451c4b1f1
1 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
if [ ${#AWIPS_HOME} = 0 ]
|
if [ ${#AWIPS_HOME} = 0 ]
|
||||||
then
|
then
|
||||||
path_to_script=`readlink -f $0`
|
path_to_script=`readlink -f $0`
|
||||||
|
@ -8,6 +9,12 @@ fi
|
||||||
|
|
||||||
. ${AWIPS_HOME}/GFESuite/ServiceBackup/configuration/svcbu.env
|
. ${AWIPS_HOME}/GFESuite/ServiceBackup/configuration/svcbu.env
|
||||||
|
|
||||||
|
if [ ${#IFPS_LOG} = 0 ]
|
||||||
|
then
|
||||||
|
echo "ERROR: environment variable IFPS_LOG is undfined, exit."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
find ${IFPS_LOG}/* -mtime +7 -exec rm -fr {} \; 2>/dev/null
|
find ${IFPS_LOG}/* -mtime +7 -exec rm -fr {} \; 2>/dev/null
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue