mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
21 lines
432 B
Bash
Executable File
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
|