Merge "Omaha #3049 - entire data directory cannot be removed because it is mounted" into omaha_14.4.1

Former-commit-id: e41f9d171f [formerly f43550735d] [formerly 354163cfae [formerly b48063be7f7e50a9196da1e649443249e07daafd]]
Former-commit-id: 354163cfae
Former-commit-id: 390fb20752
This commit is contained in:
Richard Peter 2014-08-13 18:11:51 -05:00 committed by Gerrit Code Review
commit 44f9e86026

View file

@ -162,16 +162,10 @@ do
done
# purge the existing data directory
if [ -d ${AWIPS2_DATA_DIRECTORY} ]; then
rm -rf ${AWIPS2_DATA_DIRECTORY}
if [ $? -ne 0 ]; then
exit 1
fi
fi
mkdir ${AWIPS2_DATA_DIRECTORY}
rm -rf ${AWIPS2_DATA_DIRECTORY}/*
if [ $? -ne 0 ]; then
exit 1
fi
exit 1
fi
init_db