Skip to content

Commit df7ccca

Browse files
authored
Little fix for previous commit
see outroll/vesta@563a9d8
1 parent 563a9d8 commit df7ccca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/v-backup-user

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,9 @@ if [ ! -z "$DB_SYSTEM" ] && [ "$DB" != '*' ]; then
392392
grep "DB='$database'" $conf > vesta/db.conf
393393

394394
dump="$tmpdir/db/$database/$database.$TYPE.sql"
395+
dumpgz="$tmpdir/db/$database/$database.$TYPE.sql.gz"
395396
grants="$tmpdir/db/$database/conf/$database.$TYPE.$DBUSER"
396-
if [ ! -f "$dump" ]; then
397+
if [ ! -f "$dumpgz" ]; then
397398
case $TYPE in
398399
mysql) dump_mysql_database ;;
399400
pgsql) dump_pgsql_database ;;

0 commit comments

Comments
 (0)