aboutsummaryrefslogtreecommitdiff
path: root/trunk/lib/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/lib/common.sh')
-rw-r--r--trunk/lib/common.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index f1c7794..26c550f 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -1375,9 +1375,9 @@ function check_gnupg {
local user="$1" home
if [ ! -z "$user" ]; then
- echo "Setting up gnupg..."
home="`grep "^$user:" /etc/passwd | cut -d : -f 6`"
if [ ! -d "$home/.gnupg" ]; then
+ echo "Setting up gnupg..."
su $user -c "gpg --list-keys"
fi
else