Different from current user
This commit is contained in:
parent
0da7162f90
commit
82645af71a
|
@ -252,7 +252,7 @@ function gpg_agent_setup {
|
||||||
if ! grep -q 'allow-loopback-pinentry' /home/$gpg_username/.gnupg/gpg-agent.conf; then
|
if ! grep -q 'allow-loopback-pinentry' /home/$gpg_username/.gnupg/gpg-agent.conf; then
|
||||||
echo 'allow-loopback-pinentry' >> /home/$gpg_username/.gnupg/gpg-agent.conf
|
echo 'allow-loopback-pinentry' >> /home/$gpg_username/.gnupg/gpg-agent.conf
|
||||||
fi
|
fi
|
||||||
if [[ "$USER" == 'root' ]]; then
|
if [[ "$gpg_username" != "$USER" ]]; then
|
||||||
su -c "echo RELOADAGENT | gpg-connect-agent" - $gpg_username
|
su -c "echo RELOADAGENT | gpg-connect-agent" - $gpg_username
|
||||||
else
|
else
|
||||||
echo RELOADAGENT | gpg-connect-agent
|
echo RELOADAGENT | gpg-connect-agent
|
||||||
|
|
Loading…
Reference in New Issue