mirror of git://anongit.mindrot.org/openssh.git
skip, rather than fatal when run without SUDO set
This commit is contained in:
parent
599f01142a
commit
51a1c21152
|
@ -6,8 +6,10 @@ tid="authorized principals command"
|
||||||
rm -f $OBJ/user_ca_key* $OBJ/cert_user_key*
|
rm -f $OBJ/user_ca_key* $OBJ/cert_user_key*
|
||||||
cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak
|
cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak
|
||||||
|
|
||||||
if [ -z "$SUDO" ]; then
|
if test -z "$SUDO" ; then
|
||||||
fatal "need SUDO to create file in /var/run, test won't work without"
|
echo "skipped (SUDO not set)"
|
||||||
|
echo "need SUDO to create file in /var/run, test won't work without"
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Establish a AuthorizedPrincipalsCommand in /var/run where it will have
|
# Establish a AuthorizedPrincipalsCommand in /var/run where it will have
|
||||||
|
|
Loading…
Reference in New Issue