From 5e7fe5aeaf2ed4b08657730e400b9677f940705e Mon Sep 17 00:00:00 2001 From: Thibault Date: Tue, 15 Oct 2019 18:13:36 +0200 Subject: [PATCH 1/4] updated link to doc --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 797c9c5..aaa91b7 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to ## Documentation * Official documentation: https://www.collaboraoffice.com/code/ - * YunoHost documentation: https://github.com/YunoHost/doc/blob/master/collabora.md + * YunoHost documentation: https://github.com/YunoHost/doc/blob/master/collabora_en.md #### Multi-users support From d832410e53f25d0454708d4dd555506248726c5c Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 14 Mar 2020 20:07:23 +0100 Subject: [PATCH 2/4] 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 From 1827366092266ff8dcfee3f64ca59128dee15005 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 16 Apr 2020 01:21:50 +0200 Subject: [PATCH 3/4] Fix DEBIAN_VERSION_NUMBER --- README.md | 1 - scripts/install | 6 ++---- scripts/restore | 12 +++--------- scripts/upgrade | 13 +++++++++++-- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 797c9c5..81d91aa 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,6 @@ If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to * x86-64b - [![Build Status](https://ci-apps.yunohost.org/ci/logs/collabora%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/collabora/) * ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/collabora%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/collabora/) -* Jessie x86-64b - [![Build Status](https://ci-stretch.nohost.me/ci/logs/collabora%20%28Apps%29.svg)](https://ci-stretch.nohost.me/ci/apps/collabora/) ## Limitations diff --git a/scripts/install b/scripts/install index 5bd6b84..3fe4456 100644 --- a/scripts/install +++ b/scripts/install @@ -63,19 +63,17 @@ ynh_app_setting_set --app=$app --key=port --value=$port #=============================================== # ADD COLLABORA REPOSITORY #=============================================== +ynh_print_info --message="Add Collabora repository..." -ynh_install_app_dependencies apt-transport-https apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0C54D189F4BA284D - 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 +echo "deb https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian${DEBIAN_VERSION_NUMBER} ./" | tee -a /etc/apt/sources.list.d/collabora.list #================================================= # INSTALL DEPENDENCIES #================================================= ynh_print_info --message="Installing dependencies..." -ynh_package_update ynh_install_app_dependencies $pkg_dependencies #================================================= diff --git a/scripts/restore b/scripts/restore index 2a4c2bf..acd3a7d 100644 --- a/scripts/restore +++ b/scripts/restore @@ -51,16 +51,11 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" #=============================================== # ADD COLLABORA REPOSITORY #=============================================== +ynh_print_info --message="Add Collabora repository..." -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 #================================================= # REINSTALL DEPENDENCIES @@ -68,7 +63,6 @@ fi ynh_print_info --message="Reinstalling dependencies..." # Define and install dependencies -ynh_package_update ynh_install_app_dependencies $pkg_dependencies #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 678f95c..7dd9116 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -74,13 +74,22 @@ ynh_print_info --message="Upgrading nginx web server configuration..." # Create a dedicated nginx config ynh_add_nginx_config +#=============================================== +# ADD COLLABORA REPOSITORY +#=============================================== +ynh_print_info --message="Add Collabora repository..." + +apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0C54D189F4BA284D +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 + #================================================= # UPGRADE DEPENDENCIES #================================================= ynh_print_info --message="Upgrading dependencies..." -ynh_package_update -ynh_install_app_dependencies loolwsd code-brand +ynh_install_app_dependencies $pkg_dependencies + #================================================= # SPECIFIC UPGRADE #================================================= From 103d7e46c4cf3e430a0f83933321da32cafd9b89 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 16 Apr 2020 01:53:52 +0200 Subject: [PATCH 4/4] fix removal --- scripts/remove | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/remove b/scripts/remove index ba75d43..32fdf2c 100644 --- a/scripts/remove +++ b/scripts/remove @@ -64,10 +64,10 @@ ynh_secure_remove --file="/etc/cron.d/$app" ynh_secure_remove --file="/etc/apt/sources.list.d/collabora.list" # Remove a directory securely -ynh_secure_remove --file="/etc/loolwsd/" +ynh_secure_remove --file="/etc/loolwsd" # Remove the log files -ynh_secure_remove --file="/var/log/$app/" +ynh_secure_remove --file="/var/log/$app" #================================================= # GENERIC FINALIZATION