diff options
author | Tim Rice <tim@multitalents.net> | 2013-06-02 15:13:09 -0700 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2013-06-02 15:13:09 -0700 |
commit | 3f3064c82238c486706471d300217d73dd0f125e (patch) | |
tree | 4898775c47061b96c2f215d7a28c839ad0fe1c6c /regress/sftp-chroot.sh | |
parent | 01ec0af301f60fefdd0079647f13ef9abadd2db5 (diff) |
- (tim) [regress/sftp-chroot.sh] skip if no sudo. ok dtucker
Diffstat (limited to 'regress/sftp-chroot.sh')
-rw-r--r-- | regress/sftp-chroot.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/regress/sftp-chroot.sh b/regress/sftp-chroot.sh index 98a364ebf..03b9bc6d7 100644 --- a/regress/sftp-chroot.sh +++ b/regress/sftp-chroot.sh | |||
@@ -8,7 +8,8 @@ FILENAME=testdata_${USER} | |||
8 | PRIVDATA=${CHROOT}/${FILENAME} | 8 | PRIVDATA=${CHROOT}/${FILENAME} |
9 | 9 | ||
10 | if [ -z "$SUDO" ]; then | 10 | if [ -z "$SUDO" ]; then |
11 | fatal "need SUDO to create file in /var/run, test won't work without" | 11 | echo "skipped: need SUDO to create file in /var/run, test won't work without" |
12 | exit 0 | ||
12 | fi | 13 | fi |
13 | 14 | ||
14 | $SUDO sh -c "echo mekmitastdigoat > $PRIVDATA" || \ | 15 | $SUDO sh -c "echo mekmitastdigoat > $PRIVDATA" || \ |