#! /bin/sh
if [ "$(id -u)" = 0 ]; then
    idarg="-i $(id -u myproxyoauth)"
fi
export PYTHONPATH="/usr/share/myproxy-oauth"
exec /usr/bin/python2 /usr/share/myproxy-oauth/myproxy-oauth-setup "$@" ${idarg}
