Skip to content

Commit 921f3b8

Browse files
author
Serghey Rodin
committed
fix for database restore function
1 parent 19cdf5f commit 921f3b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-restore-user

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ if [ "$db" != 'no' ] && [ ! -z "$DB_SYSTEM" ]; then
488488
echo -e "$(date "+%F %T") $database" |tee -a $tmpdir/restore.log
489489

490490
# Checking database existance
491-
check_config=$(grep "DB='$db'" $USER_DATA/db.conf)
491+
check_config=$(grep "DB='$database'" $USER_DATA/db.conf)
492492

493493
# Unpacking database container
494494
tar xf $BACKUP/$backup -C $tmpdir ./db/$database

0 commit comments

Comments
 (0)