uniq databases during restore

This commit is contained in:
Serghey Rodin 2015-10-05 23:33:01 +03:00
commit 8976066313

View file

@ -649,7 +649,7 @@ if [ "$db" != 'no' ]; then
# Create domain list
db_list=$(tar -tf $BACKUP/$backup | grep "^./db" |\
grep db.conf | cut -f 3 -d '/')
grep db.conf | cut -f 3 -d '/' |sort -u)
if [ ! -z "$db" ]; then
db_include_list=$(mktemp)
for db_include in ${db//,/ }; do