u
This commit is contained in:
@@ -65,12 +65,10 @@ if [[ ${user_input} == "y" ]]; then
|
|||||||
echo "please, remember the hint: poq.l2"
|
echo "please, remember the hint: poq.l2"
|
||||||
gpg -d ${trg_gnupg_dir}/${the_file} > ${trg_gnupg_dir}/private-keys-v1.d.7z
|
gpg -d ${trg_gnupg_dir}/${the_file} > ${trg_gnupg_dir}/private-keys-v1.d.7z
|
||||||
7za x ${trg_gnupg_dir}/private-keys-v1.d.7z -o${trg_gnupg_dir}
|
7za x ${trg_gnupg_dir}/private-keys-v1.d.7z -o${trg_gnupg_dir}
|
||||||
|
|
||||||
chmod 0600 ${trg_gnupg_dir}/private-keys-v1.d/* # private keys should not be accessible by other users
|
chmod 0600 ${trg_gnupg_dir}/private-keys-v1.d/* # private keys should not be accessible by other users
|
||||||
|
|
||||||
trash-put ${trg_gnupg_dir}/private-keys-v1.d.7z.gpg
|
trash-put ${trg_gnupg_dir}/private-keys-v1.d.7z.gpg
|
||||||
trash-put ${trg_gnupg_dir}/private-keys-v1.d.7z
|
trash-put ${trg_gnupg_dir}/private-keys-v1.d.7z
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "no worries. you can manually unpack and decrypt the file, if needed:"
|
echo "no worries. you can manually unpack and decrypt the file, if needed:"
|
||||||
echo "gpg -d private-keys-v1.d.7z.gpg > private-keys-v1.d.7z"
|
echo "gpg -d private-keys-v1.d.7z.gpg > private-keys-v1.d.7z"
|
||||||
|
|||||||
Reference in New Issue
Block a user