Skip to content
Snippets Groups Projects
Commit 971649b2 authored by Bob Mottram's avatar Bob Mottram
Browse files

Restore with batch

parent 12b10ffa
No related branches found
No related tags found
No related merge requests found
......@@ -904,6 +904,9 @@ function simple_restore_backup_keys {
exit 945264
fi
simple_keys_file=/root/simplebackupkeys.tar.gz
if [ -f $simple_keys_file ]; then
rm $simple_keys_file
fi
if [ ! -f $USB_MOUNT/config.dat ]; then
echo $'No keys were found on the backup drive'
......@@ -911,7 +914,7 @@ function simple_restore_backup_keys {
rm -rf $USB_MOUNT
exit 356873
fi
echo -n "$simple_backup_password" | gpg --passphrase-fd 0 --output $simple_keys_file --decrypt $USB_MOUNT/config.dat
echo -n "$simple_backup_password" | gpg --batch --passphrase-fd 0 --output $simple_keys_file --decrypt $USB_MOUNT/config.dat
if [ ! -f $simple_keys_file ]; then
umount $USB_MOUNT
......@@ -967,6 +970,9 @@ increment_restore_progress
check_admin_user
increment_restore_progress
gpg_agent_setup root
increment_restore_progress
simple_restore_backup_keys
increment_restore_progress
......@@ -976,9 +982,6 @@ increment_restore_progress
copy_gpg_keys
increment_restore_progress
gpg_agent_setup root
increment_restore_progress
restore_blocklist
increment_restore_progress
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment