Files
ocserv/tests/docker-kerberos/myscript
2015-06-29 14:52:08 +02:00

21 lines
432 B
Bash
Executable File

#!/bin/sh
if [ "$REASON" != "connect" ];then
if test "$STATS_BYTES_IN" != "0";then
echo $STATS_BYTES_IN >/tmp/disconnect/ok
else
echo $STATS_BYTES_IN >/tmp/disconnect/not-ok
fi
elif [ "$REASON" = "connect" ];then
rm -f /tmp/disconnect/group-ok
if test "$GROUPNAME" != "testuser";then
echo "Groupname failed: $GROUPNAME" >/tmp/group-not-ok
exit 1;
else
echo "Groupname ok: $GROUPNAME" >/tmp/group-ok
fi
fi
exit 0