Skip to content

Commit

Permalink
Improve fleet release link finding
Browse files Browse the repository at this point in the history
  • Loading branch information
clong authored Feb 15, 2021
1 parent a4eae82 commit eedd621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Vagrant/logger_bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ install_fleet_import_osquery_config() {
mysql -uroot -pkolide -e "create database kolide;"

# Always download the latest release of Fleet
curl -s https://api.github.com/repos/fleetdm/fleet/releases/latest | grep 'https://github.com' | grep "/fleet.zip" | cut -d ':' -f 2,3 | tr -d '"' | wget --progress=bar:force -i -
curl -s https://api.github.com/repos/fleetdm/fleet/releases | grep 'https://github.com' | grep "/fleet.zip" | cut -d ':' -f 2,3 | tr -d '"' | tr -d ' ' | head -1 | wget --progress=bar:force -i -
unzip fleet.zip -d fleet
cp fleet/linux/fleetctl /usr/local/bin/fleetctl && chmod +x /usr/local/bin/fleetctl
cp fleet/linux/fleet /usr/local/bin/fleet && chmod +x /usr/local/bin/fleet
Expand Down

0 comments on commit eedd621

Please sign in to comment.