#!/bin/sh
set -e
grep 'Ubuntu 22.04' /etc/os-release || ( echo "This INSTALL.sh is for 'Ubuntu 22.04'. Press CTRL-C to abort, ENTER to continue"; read a )
apt-get update -y && apt-get install -y wget gnupg curl binutils apt-transport-https
wget -nv http://USER:PASS@www.example.com/download/Ubuntu_22.04/Release.key -O - | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/qa-client.gpg > /dev/null
echo 'deb http://USER:PASS@www.example.com/download/Ubuntu_22.04/ /' > /etc/apt/sources.list.d/qa-client.list
apt-get update -q
apt-get install -y qa-client
