mirror of
https://github.com/YunoHost-Apps/collabora_ynh.git
synced 2024-09-03 18:16:25 +02:00
Get rid of debian version specific/hardcoded stuff
This commit is contained in:
parent
e3fe38dc12
commit
d832410e53
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue