Tidying
This commit is contained in:
parent
6d541dc780
commit
5f9fdcb159
|
@ -1423,9 +1423,9 @@ function configure_gpg {
|
||||||
chown -R $MY_USERNAME:$MY_USERNAME $gpg_dir
|
chown -R $MY_USERNAME:$MY_USERNAME $gpg_dir
|
||||||
chmod 700 $gpg_dir
|
chmod 700 $gpg_dir
|
||||||
chmod 600 $gpg_dir/*
|
chmod 600 $gpg_dir/*
|
||||||
printf '%%Assuan%%\nsocket=/dev/shm/S.dirmngr\n' > /home/$MY_USERNAME/.gnupg/S.dirmngr
|
printf '%%Assuan%%\nsocket=/dev/shm/S.dirmngr\n' > $gpg_dir/S.dirmngr
|
||||||
if [ -d /home/$MY_USERNAME/.gnupg/crls.d ]; then
|
if [ -d $gpg_dir/crls.d ]; then
|
||||||
chmod +x /home/$MY_USERNAME/.gnupg/crls.d
|
chmod +x $gpg_dir/crls.d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $MY_GPG_PUBLIC_KEY && $MY_GPG_PRIVATE_KEY ]]; then
|
if [[ $MY_GPG_PUBLIC_KEY && $MY_GPG_PRIVATE_KEY ]]; then
|
||||||
|
@ -1475,9 +1475,9 @@ function configure_gpg {
|
||||||
cp -r /home/$MY_USERNAME/.gnupg /root/
|
cp -r /home/$MY_USERNAME/.gnupg /root/
|
||||||
chmod 700 /root/.gnupg
|
chmod 700 /root/.gnupg
|
||||||
chmod 600 /root/.gnupg/*
|
chmod 600 /root/.gnupg/*
|
||||||
printf '%%Assuan%%\nsocket=/dev/shm/S.dirmngr\n' > /home/$MY_USERNAME/.gnupg/S.dirmngr
|
printf '%%Assuan%%\nsocket=/dev/shm/S.dirmngr\n' > /root/.gnupg/S.dirmngr
|
||||||
if [ -d /home/$MY_USERNAME/.gnupg/crls.d ]; then
|
if [ -d /root/.gnupg/crls.d ]; then
|
||||||
chmod +x /home/$MY_USERNAME/.gnupg/crls.d
|
chmod +x /root/.gnupg/crls.d
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue