From d832410e53f25d0454708d4dd555506248726c5c Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 14 Mar 2020 20:07:23 +0100 Subject: [PATCH] Get rid of debian version specific/hardcoded stuff --- scripts/install | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index c9a1b84..5bd6b84 100644 --- a/scripts/install +++ b/scripts/install @@ -67,12 +67,8 @@ ynh_app_setting_set --app=$app --key=port --value=$port ynh_install_app_dependencies apt-transport-https apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0C54D189F4BA284D -if [ "$(lsb_release --codename --short)" = "jessie" ]; then -echo 'deb https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian8 ./' | tee -a /etc/apt/sources.list.d/collabora.list -else - -echo 'deb https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian9 ./' | tee -a /etc/apt/sources.list.d/collabora.list -fi +DEBIAN_VERSION_NUMBER=$(cat /etc/debian_version | head -n 1 | cut -f1 -d .) +echo 'deb https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian${DEBIAN_VERSION_NUMBER} ./' | tee -a /etc/apt/sources.list.d/collabora.list #================================================= # INSTALL DEPENDENCIES