diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-05-08 17:06:40 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-05-08 17:07:07 +0300 |
commit | f0df41eacf24e7e7f2acf680eb0ad45c215430b7 (patch) | |
tree | 75bb1e3d67e08aaf424a6183521f97c67e638281 /testing/aaudit/aaudit-shell | |
parent | 7e41e855da70522b776e11a230448c80340e72f3 (diff) | |
download | aports-f0df41eacf24e7e7f2acf680eb0ad45c215430b7.tar.bz2 aports-f0df41eacf24e7e7f2acf680eb0ad45c215430b7.tar.xz |
testing/aaudit: convert everything to lua, start serverside ssh integration
Diffstat (limited to 'testing/aaudit/aaudit-shell')
-rwxr-xr-x | testing/aaudit/aaudit-shell | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/aaudit/aaudit-shell b/testing/aaudit/aaudit-shell new file mode 100755 index 0000000000..73ebd2e7eb --- /dev/null +++ b/testing/aaudit/aaudit-shell @@ -0,0 +1,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 |