chiark / gitweb /
zoneconf-install-*: Find `zoneconf' in the correct place.
[zoneconf] / zoneconf-install-ssh.in
diff --git a/zoneconf-install-ssh.in b/zoneconf-install-ssh.in
new file mode 100755 (executable)
index 0000000..7b06bba
--- /dev/null
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+set -e
+set -- $SSH_ORIGINAL_COMMAND
+case $# in
+  2) ;;
+  *) echo >&2 "Usage: $0 VIEW ZONE"; exit 1 ;;
+esac
+
+view="$1" zone="$2"
+exec @sbindir@/zoneconf install "$SSH_USER" "$view" "$zone"