We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8379391 commit 8c81e6bCopy full SHA for 8c81e6b
bin/v-restore-user
@@ -270,6 +270,21 @@ if [ "$create_user" = 'yes' ]; then
270
271
# Rebuilding user
272
rebuild_user_conf
273
+else
274
+ # Unpacking user container to check if hestia or vesta backup.
275
+ tar xf $BACKUP/$backup -C $tmpdir ./hestia 2>/dev/null
276
+ if [ "$?" -ne 0 ]; then
277
+ tar xf $BACKUP/$backup -C $tmpdir ./vesta 2>/dev/null
278
279
+ rm -rf $tmpdir
280
+ echo "Can't unpack user container" |$SENDMAIL -s "$subj" $email $notify
281
+ check_result "$E_PARSING" "Can't unpack user container"
282
+ else
283
+ backup_system="vesta"
284
+ fi
285
286
+ backup_system="hestia"
287
288
fi
289
290
# Unpacking pam container
0 commit comments