Install osquery locally

This commit is contained in:
Josh Brower
2019-04-28 14:50:30 -04:00
committed by GitHub
parent e5ac4cb711
commit c23153b91e

View File

@@ -33,5 +33,12 @@ docker run \
sed -i "s@.*Generated.*@Generated: $(date '+%m%d%Y')@g" /opt/so/conf/fleet/packages/index.html sed -i "s@.*Generated.*@Generated: $(date '+%m%d%Y')@g" /opt/so/conf/fleet/packages/index.html
sed -i "s@.*Generated.*@Generated: $(date '+%m%d%Y')@g" /opt/so/saltstack/salt/fleet/osquery-packages.html sed -i "s@.*Generated.*@Generated: $(date '+%m%d%Y')@g" /opt/so/saltstack/salt/fleet/osquery-packages.html
#Install osquery locally
if cat /etc/os-release | grep -q 'debian'; then
dpkg -i /opt/so/conf/fleet/packages/launcher.deb
else
rpm -i /opt/so/conf/fleet/packages/launcher.rpm
fi
echo "Fleet Setup Complete - Login here: https://$1" echo "Fleet Setup Complete - Login here: https://$1"
echo "Your username is $2 and your password is $initpw" echo "Your username is $2 and your password is $initpw"