blob: 73ebd2e7eb43e2d2202fd5e6044c8458b4fe8560 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
local ip="${SSH_CLIENT/ */}"
local identity="$1"
[ -z "$ip" -o -z "$identity" ] && exit 1
set -- $SSH_ORIGINAL_COMMAND
cmd="$1"
shift
case "$cmd" in
create) /usr/libexec/aaudit/aaudit-repo-create -a "$ip" "$@" -i "$identity" ;;
commit) /usr/libexec/aaudit/aaudit-repo-update -a "$ip" "$@" -i "$identity" ;;
esac
|