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