blackbox: Removed homedir and updated README to add step to import pubring
This commit is contained in:
@@ -496,6 +496,7 @@ git commit -m"Adding key for KEYNAME" pubring.gpg trustdb.gpg blackbox-admins.tx
|
|||||||
Regenerate all encrypted files with the new key:
|
Regenerate all encrypted files with the new key:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
gpg --import keyrings/live/pubring.gpg
|
||||||
blackbox_update_all_files
|
blackbox_update_all_files
|
||||||
git status
|
git status
|
||||||
git commit -m"updated encryption" -a
|
git commit -m"updated encryption" -a
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ function encrypt_file() {
|
|||||||
encrypted="$2"
|
encrypted="$2"
|
||||||
|
|
||||||
echo "========== Encrypting: $unencrypted"
|
echo "========== Encrypting: $unencrypted"
|
||||||
gpg --yes --trust-model=always --homedir keyrings/live/ --encrypt -o "$encrypted" $(awk '{ print "-r" $1 }' < "$BB_ADMINS") "$unencrypted"
|
gpg --yes --trust-model=always --encrypt -o "$encrypted" $(awk '{ print "-r" $1 }' < "$BB_ADMINS") "$unencrypted"
|
||||||
echo '========== Encrypting: DONE'
|
echo '========== Encrypting: DONE'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user