From be6e11af07c8457ee563c4554dc4acd96f90f394 Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Sat, 11 Nov 2017 16:41:23 +0100 Subject: [PATCH] Update install --- scripts/install | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/install b/scripts/install index 53fccf1..5e6a384 100644 --- a/scripts/install +++ b/scripts/install @@ -33,6 +33,16 @@ sudo yunohost app checkurl "${domain}" -a "$app" \ || ynh_die "Path not available: ${domain}" +# Check whether Nextcloud or Seafile is installed +nextcloud_install=$(collaboraonline_app_check_installation "nextcloud") +seafile_install=$(collaboraonline_app_check_installation "seafile") +if [[ -n "$nextcloud_install" ]] +then +elif [[ -n "$seafile_install" ]] +else + ynh_die "Nextcloud or Seafile is not installed" +fi + sudo apt-get -yy install apt-transport-https sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0C54D189F4BA284D sudo echo 'deb https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian8 ./' | sudo tee -a /etc/apt/sources.list