#!/bin/sh
set -e
grep 'Debian 11' /etc/os-release || ( echo "This INSTALL.sh is for 'Debian 11'. Press CTRL-C to abort, ENTER to continue"; read a )
apt-get update -y && apt-get install -y wget gnupg2 curl binutils apt-transport-https
wget -nv https://download.owncloud.com/desktop/testpilotcloud/stable/4.2/linux/Debian_11/Release.key -O - | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/owncloud.gpg > /dev/null
echo 'deb https://download.owncloud.com/desktop/testpilotcloud/stable/4.2/linux/Debian_11/ /' > /etc/apt/sources.list.d/testpilotcloud.list
apt-get update -q
apt-get install -y testpilotcloud-client
