Sfoglia il codice sorgente

Different from current user

Bob Mottram 7 anni fa
parent
commit
82645af71a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      src/freedombone-utils-gpg

+ 1
- 1
src/freedombone-utils-gpg Vedi File

@@ -252,7 +252,7 @@ function gpg_agent_setup {
252 252
         if ! grep -q 'allow-loopback-pinentry' /home/$gpg_username/.gnupg/gpg-agent.conf; then
253 253
             echo 'allow-loopback-pinentry' >> /home/$gpg_username/.gnupg/gpg-agent.conf
254 254
         fi
255
-        if [[ "$USER" == 'root' ]]; then
255
+        if [[ "$gpg_username" != "$USER" ]]; then
256 256
             su -c "echo RELOADAGENT | gpg-connect-agent" - $gpg_username
257 257
         else
258 258
             echo RELOADAGENT | gpg-connect-agent