#!/bin/sh
grep 'Debian 10' /etc/os-release || ( echo "This INSTALL.sh is for 'Debian 10'. 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/online/2.8.2/owncloudonline-2.8.2.4401-linux/Debian_10/Release.key -O - | apt-key add - || exit 1
echo 'deb https://download.owncloud.com/desktop/online/2.8.2/owncloudonline-2.8.2.4401-linux/Debian_10/ /' > /etc/apt/sources.list.d/owncloudonline.list
apt-get update -q
apt-get install -y owncloudonline-client
