Selaa lähdekoodia

gpg agent for root

Bob Mottram 7 vuotta sitten
vanhempi
commit
a34b251cb9

+ 1
- 0
src/freedombone-backup-local Näytä tiedosto

@@ -373,6 +373,7 @@ if [[ $1 == "remove" ]]; then
373 373
     remove_option=$1
374 374
 fi
375 375
 
376
+gpg_agent_setup root
376 377
 backup_mount_drive $1 $2
377 378
 remove_backup_directory $remove_option
378 379
 make_backup_directory

+ 2
- 1
src/freedombone-backup-remote Näytä tiedosto

@@ -13,7 +13,7 @@
13 13
 # License
14 14
 # =======
15 15
 #
16
-# Copyright (C) 2015-2016 Bob Mottram <bob@freedombone.net>
16
+# Copyright (C) 2015-2018 Bob Mottram <bob@freedombone.net>
17 17
 #
18 18
 # This program is free software: you can redistribute it and/or modify
19 19
 # it under the terms of the GNU Affero General Public License as published by
@@ -430,6 +430,7 @@ if [[ "$1" == "test" ]]; then
430 430
     TEST_MODE="yes"
431 431
 fi
432 432
 
433
+gpg_agent_setup root
433 434
 backup_configfiles
434 435
 if [[ $TEST_MODE == "no" ]]; then
435 436
     backup_blocklist

+ 1
- 0
src/freedombone-restore-local Näytä tiedosto

@@ -956,6 +956,7 @@ backup_mount_drive ${1} ${ADMIN_USERNAME} ${2}
956 956
 check_backup_exists
957 957
 check_admin_user
958 958
 copy_gpg_keys
959
+gpg_agent_setup root
959 960
 restore_blocklist
960 961
 restore_configfiles
961 962
 same_admin_user

+ 1
- 0
src/freedombone-restore-remote Näytä tiedosto

@@ -857,6 +857,7 @@ function restore_email {
857 857
 ${PROJECT_NAME}-recoverkey -u ${ADMIN_USERNAME} -l $BACKUP_LIST
858 858
 
859 859
 copy_gpg_keys
860
+gpg_agent_setup root
860 861
 restore_blocklist
861 862
 restore_configfiles
862 863
 restore_passwordstore