dot

packages and services management
Log | Files | Refs | README

commit 799baad969f099ce954f18c786be7d4761e38493
parent 04608a1e42eba40f4cd81155f9045bb5fe04ef16
Author: Josuah Demangeon <mail@josuah.net>
Date:   Mon, 24 Dec 2018 15:09:55 +0100

fix profile script

Diffstat:
Mbin/gpg-export | 1-
Mbin/gpg-import | 12++++++++++--
Metc/profile | 4++++
3 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/bin/gpg-export b/bin/gpg-export @@ -3,7 +3,6 @@ mkdir -p -m 0700 /mnt/key/gpg cd /mnt/key/gpg - gpg -k | sed -n 's/^ //p' | while read x; do gpg --export "${x}" >"${HOME}/.gnupg/public-keys-v1.d/${x}.key" done diff --git a/bin/gpg-import b/bin/gpg-import @@ -3,6 +3,14 @@ cd /mnt/key/gpg mkdir -p -m 0700 "${HOME}/.gnupg" -cp -r openpgp-revocs.d private-keys-v1.d "${HOME}/.gnupg" -gpg --import public-keys-v1.d/* +mkdir -p openpgp-revocs.d +cp -r openpgp-revocs.d "${HOME}/.gnupg" + +mkdir -p public-keys-v1.d +cp -r public-keys-v1.d "${HOME}/.gnupg" +gpg --import "${HOME}/.gnupg/public-keys-v1.d/"* + +mkdir -p private-keys-v1.d +cp -r private-keys-v1.d "${HOME}/.gnupg" + gpg --import-ownertrust trustdb.txt diff --git a/etc/profile b/etc/profile @@ -1 +1,5 @@ umask 0022 + +for x in /etc/profile.d/*; do + . "${x}" +done