Merge pull request #607 from pgmcgee/fixESXiFleetInstall
Fix Fleet install in ESXi to use the latest fleet.zip release
This commit is contained in:
@@ -300,7 +300,7 @@
|
|||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
become: yes
|
become: yes
|
||||||
shell: |
|
shell: |
|
||||||
if [ -f "/opt/fleet" ]; then
|
if [ -d "/opt/fleet" ]; then
|
||||||
echo "[$(date +%H:%M:%S)]: Fleet is already installed"
|
echo "[$(date +%H:%M:%S)]: Fleet is already installed"
|
||||||
else
|
else
|
||||||
cd /opt || exit 1
|
cd /opt || exit 1
|
||||||
@@ -314,7 +314,7 @@
|
|||||||
mysql -uroot -pkolide -e "create database kolide;"
|
mysql -uroot -pkolide -e "create database kolide;"
|
||||||
|
|
||||||
# Always download the latest release of Fleet
|
# 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
|
unzip fleet.zip -d fleet
|
||||||
cp fleet/linux/fleetctl /usr/local/bin/fleetctl && chmod +x /usr/local/bin/fleetctl
|
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
|
cp fleet/linux/fleet /usr/local/bin/fleet && chmod +x /usr/local/bin/fleet
|
||||||
|
|||||||
Reference in New Issue
Block a user