From 897606631355a64e96fb8bbf41d951de78c29df9 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Mon, 5 Oct 2015 23:33:01 +0300 Subject: [PATCH] uniq databases during restore --- bin/v-restore-user | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-restore-user b/bin/v-restore-user index efdb21e2..33d5cdfe 100755 --- a/bin/v-restore-user +++ b/bin/v-restore-user @@ -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