mirror of https://github.com/apache/archiva.git
Adding cleanup of indexer directories
This commit is contained in:
parent
abab994f71
commit
6a789cd7ae
|
@ -23,6 +23,7 @@
|
|||
# Removes directories that are not used anymore.
|
||||
##
|
||||
ATTIC_DIRS=""
|
||||
REMOVE_DIRS=".indexer"
|
||||
|
||||
for i in ${ATTIC_DIRS}; do
|
||||
if [ "X${i}" != "X" -a -d ${i} ]; then
|
||||
|
@ -30,3 +31,7 @@ for i in ${ATTIC_DIRS}; do
|
|||
rm -rf ${i}
|
||||
fi
|
||||
done
|
||||
|
||||
for i in ${REMOVE_DIRS}; do
|
||||
find . -type d -name "${i}" -exec rm -rf {} \;
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue