Skip to content

Commit

Permalink
Update bootstrap.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
clong authored Nov 9, 2020
1 parent 821e9a6 commit 310a38e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Vagrant/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,15 @@ install_fleet_import_osquery_config() {
cd /opt || exit 1

echo "[$(date +%H:%M:%S)]: Installing Fleet..."
echo -e "\n127.0.0.1 kolide" >>/etc/hosts
echo -e "\n127.0.0.1 fleet" >>/etc/hosts
echo -e "\n127.0.0.1 logger" >>/etc/hosts

# Set MySQL username and password, create kolide database
mysql -uroot -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'kolide';"
mysql -uroot -pkolide -e "create database kolide;"

# Always download the latest release of Fleet
curl -s https://api.github.com/repos/kolide/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/latest | grep 'https://github.com' | grep "/fleet.zip" | cut -d ':' -f 2,3 | tr -d '"' | 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 310a38e

Please sign in to comment.