diff options
author | Damien Miller <djm@mindrot.org> | 2015-05-29 18:27:21 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-05-29 18:27:21 +1000 |
commit | 51a1c2115265c6e80ede8a5c9dccada9aeed7143 (patch) | |
tree | 0c099167815384f518a36431bbafbb10750cef4c /regress/principals-command.sh | |
parent | 599f01142a376645b15cbc9349d7e8975e1cf245 (diff) |
skip, rather than fatal when run without SUDO set
Diffstat (limited to 'regress/principals-command.sh')
-rw-r--r-- | regress/principals-command.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/regress/principals-command.sh b/regress/principals-command.sh index c3816e081..90064373d 100644 --- a/regress/principals-command.sh +++ b/regress/principals-command.sh | |||
@@ -6,8 +6,10 @@ tid="authorized principals command" | |||
6 | rm -f $OBJ/user_ca_key* $OBJ/cert_user_key* | 6 | rm -f $OBJ/user_ca_key* $OBJ/cert_user_key* |
7 | cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak | 7 | cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak |
8 | 8 | ||
9 | if [ -z "$SUDO" ]; then | 9 | if test -z "$SUDO" ; then |
10 | fatal "need SUDO to create file in /var/run, test won't work without" | 10 | echo "skipped (SUDO not set)" |
11 | echo "need SUDO to create file in /var/run, test won't work without" | ||
12 | exit 0 | ||
11 | fi | 13 | fi |
12 | 14 | ||
13 | # Establish a AuthorizedPrincipalsCommand in /var/run where it will have | 15 | # Establish a AuthorizedPrincipalsCommand in /var/run where it will have |