From 921f3b857ff5065d366ee7a785fcd7958f5f97bf Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Thu, 25 Aug 2016 19:46:07 +0300 Subject: [PATCH] fix for database restore function --- 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 4ea77af91..addff2d83 100755 --- a/bin/v-restore-user +++ b/bin/v-restore-user @@ -488,7 +488,7 @@ if [ "$db" != 'no' ] && [ ! -z "$DB_SYSTEM" ]; then echo -e "$(date "+%F %T") $database" |tee -a $tmpdir/restore.log # Checking database existance - check_config=$(grep "DB='$db'" $USER_DATA/db.conf) + check_config=$(grep "DB='$database'" $USER_DATA/db.conf) # Unpacking database container tar xf $BACKUP/$backup -C $tmpdir ./db/$database