fix for database restore function

This commit is contained in:
Serghey Rodin 2016-08-25 19:46:07 +03:00
commit 921f3b857f

View file

@ -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