website: Add 2.9.0 schema (#3794)

This commit is contained in:
Teddy Reed 2017-10-05 20:22:10 -07:00 committed by GitHub
parent 32391e708b
commit 0885e6b1b3
3 changed files with 23 additions and 4 deletions

View File

@ -1,3 +1,13 @@
- version: 2.9.0
linux: 94684419037709386dcaa42e5b519e36370bb640d230f8d3852fb66fe1e23bb0
deb: 898cd16b1df9bc7aeef91542611b0e209ff7e8b0aae273fafbf5ef9f77ed0037
darwin: 83541f1241a8b92eee9cfa3dd32f384a2fd1c7ca639f138e3ec716e7ec5177a3
rpm: 411ec4e7d84ed65e3915993824e424e54aeb358e60596059b268b27f3720b5e3
debug:
deb: a4b3c43362b1aff39607b942e81f10d50a0daa51bb32138c9969b1fb7a1c0fdb
darwin: 3485bbf23d1e11e1bb2406f61b0f087f18b8f1d69b32e41a3c20bb79a1621905
rpm: 8ea330e12787f392b3989cb3cb4aaa4c0d2e6ccc60f361d5fa5b6499411d2af0
- version: 2.8.0 - version: 2.8.0
linux: ec84b5128769f09a5513bc1d136504ca2f805580b73d602e73d2a90b1a87c80a linux: ec84b5128769f09a5513bc1d136504ca2f805580b73d602e73d2a90b1a87c80a
deb: 33a6a2233918706fa23df06dd9ff2c03bb7fc07425b645e3d882f70babddb3a4 deb: 33a6a2233918706fa23df06dd9ff2c03bb7fc07425b645e3d882f70babddb3a4

4
docs/_schema/2.9.0.md Normal file
View File

@ -0,0 +1,4 @@
---
version: 2.9.0
redirect_from: /docs/tables/2.9.0/index.html
---

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# Copyright (c) 2015, Facebook, Inc. # Copyright (c) 2015, Facebook, Inc.
# All rights reserved. # All rights reserved.
@ -34,9 +34,6 @@ function main() {
GENAPI="$OSQUERY/tools/codegen/genapi.py" GENAPI="$OSQUERY/tools/codegen/genapi.py"
/usr/local/osquery/bin/python "$GENAPI" --tables "$OSQUERY/specs" > "$SITE/schema/$VERSION.json" /usr/local/osquery/bin/python "$GENAPI" --tables "$OSQUERY/specs" > "$SITE/schema/$VERSION.json"
echo "[+] Checkout out master"
(cd $OSQUERY; git checkout master)
printf "[+] Downloading and hashing packages...\n" printf "[+] Downloading and hashing packages...\n"
PACKAGE="$URL/linux/osquery-${VERSION}_1.linux_x86_64.tar.gz" PACKAGE="$URL/linux/osquery-${VERSION}_1.linux_x86_64.tar.gz"
echo "[+] Downloading $PACKAGE" echo "[+] Downloading $PACKAGE"
@ -83,6 +80,14 @@ function main() {
$EXISTING $EXISTING
EOF EOF
echo "[+] Hashes written to $OUTPUT" echo "[+] Hashes written to $OUTPUT"
cat << EOF >> $OSQUERY/docs/_schema/$VERSION.md
---
version: $VERSION
redirect_from: /docs/tables/$VERSION/index.html
---
EOF
echo "[+] Finished" echo "[+] Finished"
} }