From f52982981fb7759f27203e0dac3f64cd6ae698f4 Mon Sep 17 00:00:00 2001 From: Javier Marcos <1271349+javuto@users.noreply.github.com> Date: Mon, 8 Jan 2024 01:37:21 +0100 Subject: [PATCH] Small changes in provision.sh --- deploy/provision.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy/provision.sh b/deploy/provision.sh index 2244fe42..76d923c4 100755 --- a/deploy/provision.sh +++ b/deploy/provision.sh @@ -22,6 +22,7 @@ # Argument for PART: # admin Provision will deploy only the admin interface. # tls Provision will deploy only the TLS endpoint. +# api Provision will deploy only the API endpoint. # all Provision will deploy both the admin and the TLS endpoint. # # Optional Parameters: @@ -95,6 +96,7 @@ function usage() { printf "\nArguments for PART:\n" printf " admin \tProvision will deploy only the admin interface.\n" printf " tls \t\tProvision will deploy only the TLS endpoint.\n" + printf " api \t\tProvision will deploy only the API endpoint.\n" printf " all \t\tProvision will deploy both the admin and the TLS endpoint.\n" printf "\nOptional Parameters:\n" printf " --public-tls-port PORT \tPort for the TLS endpoint service. Default is 443\n" @@ -474,6 +476,9 @@ if [[ "$UPGRADE" == true ]]; then _static_files "$MODE" "$SOURCE_PATH" "$DEST_PATH" "admin/templates" "tmpl_admin" _static_files "$MODE" "$SOURCE_PATH" "$DEST_PATH" "admin/static" "static" + # Copy osquery tables JSON file + sudo cp "$SOURCE_PATH/deploy/osquery/data/$OSQUERY_VERSION.json" "$DEST_PATH/data" + # Restart service with new binary make install_admin fi