summaryrefslogtreecommitdiff
path: root/src/monkeysphere-host
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2009-02-09 00:47:17 -0500
committerJameson Graef Rollins <jrollins@finestructure.net>2009-02-09 00:47:17 -0500
commit55369617d8c00de548fabfbad02ba444f701be43 (patch)
tree3d571534e13593ecfe65d581435b384e9fd5ae27 /src/monkeysphere-host
parent69354c87864076343793fb270b296ccb89bf3759 (diff)
break su_monkeysphere_user into common function, since it will likely
be needed by both m-host and m-auth for communicating with keyservers.
Diffstat (limited to 'src/monkeysphere-host')
-rwxr-xr-xsrc/monkeysphere-host13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/monkeysphere-host b/src/monkeysphere-host
index 3c2e3ee..506dcf9 100755
--- a/src/monkeysphere-host
+++ b/src/monkeysphere-host
@@ -68,19 +68,6 @@ subcommands:
EOF
}
-# function to run command as monkeysphere user
-su_monkeysphere_user() {
- # if the current user is the monkeysphere user, then just eval
- # command
- if [ $(id -un) = "$MONKEYSPHERE_USER" ] ; then
- eval "$@"
-
- # otherwise su command as monkeysphere user
- else
- su "$MONKEYSPHERE_USER" -c "$@"
- fi
-}
-
# function to interact with the gpg keyring
gpg_host() {
GNUPGHOME="$GNUPGHOME_HOST" gpg "$@"