echo '******************************************************'
echo "Installing OSQuery app + service"
echo '******************************************************'

wget -q https://github.com/osquery/osquery/releases/download/5.19.0/osquery_5.19.0-1.linux_amd64.deb

sudo dpkg -i osquery_5.19.0-1.linux_amd64.deb

sudo cp ../files/osqueryd.service /lib/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable osqueryd.service
sudo systemctl restart osqueryd.service
sudo systemctl status --no-pager osqueryd.service
