Skip to content

Commit 7ffcb60

Browse files
committed
Modify backup-system check function
1 parent 446def5 commit 7ffcb60

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bin/v-restore-user

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,9 @@ if [ "$?" -ne 0 ]; then
241241
check_result "$E_NOTEXIST" "Can't create tmp dir"
242242
fi
243243

244+
# Set default backup source system
245+
backup_system="hestia"
246+
244247
# Restoring user account
245248
if [ "$create_user" = 'yes' ]; then
246249
echo "-- USER --" |tee $tmpdir/restore.log
@@ -258,8 +261,6 @@ if [ "$create_user" = 'yes' ]; then
258261
else
259262
backup_system="vesta"
260263
fi
261-
else
262-
backup_system="hestia"
263264
fi
264265

265266
# Restoring user.conf
@@ -282,8 +283,6 @@ else
282283
else
283284
backup_system="vesta"
284285
fi
285-
else
286-
backup_system="hestia"
287286
fi
288287
fi
289288

0 commit comments

Comments
 (0)