Skip to content

Commit

Permalink
Merge pull request #388 from jmpsec/provision-updates
Browse files Browse the repository at this point in the history
Small changes in provision.sh
  • Loading branch information
javuto authored Jan 8, 2024
2 parents 7c431bc + f529829 commit ed09af3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deploy/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ed09af3

Please # to comment.