diff --git a/README.md b/README.md index cb4339f..8a5aeab 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to ## Overview OnlyOffice Document Server +**Shipped version:** 5.2.8 + ## YunoHost specific features #### Supported architectures diff --git a/manifest.json b/manifest.json index fd17f2f..08763d2 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "OnlyOffice Document Server.", "fr": "Serveur de documents OnlyOffice." }, - "version": "1.0~ynh1", + "version": "5.2.8~ynh1", "url": "https://www.onlyoffice.com", "license": "GPL-3.0-or-later", "maintainer": { diff --git a/scripts/_common.sh b/scripts/_common.sh index b905339..252d16c 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -3,6 +3,8 @@ #================================================= # PERSONAL HELPERS #================================================= +source="https://github.com/ONLYOFFICE/DocumentServer/releases/download/ONLYOFFICE-DocumentServer-5.2.8/onlyoffice-documentserver_amd64.deb" +version="5.2.8" #================================================= # EXPERIMENTAL HELPERS diff --git a/scripts/install b/scripts/install index d4d1009..46aba29 100644 --- a/scripts/install +++ b/scripts/install @@ -92,14 +92,6 @@ ynh_print_info "Add nodejs repository..." curl -sL https://deb.nodesource.com/setup_8.x | sudo bash - -#================================================= -# ADD ONLYOFFICE REPOSITORY -#================================================= -ynh_print_info "Add OnlyOffice repository..." - -apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5 -echo "deb http://download.onlyoffice.com/repo/debian squeeze main" | sudo tee /etc/apt/sources.list.d/onlyoffice.list - #================================================= # INSTALL DEPENDENCIES #================================================= @@ -188,7 +180,8 @@ echo onlyoffice-documentserver onlyoffice/ds-port select ${port} | sudo debconf- #================================================= ynh_print_info "Install OnlyOffice..." -ynh_package_install onlyoffice-documentserver +wget $source +ynh_package_install onlyoffice-documentserver_amd64.deb #================================================= # MODIFY A CONFIG FILE diff --git a/scripts/restore b/scripts/restore index 975413d..caf8c67 100644 --- a/scripts/restore +++ b/scripts/restore @@ -94,14 +94,6 @@ ynh_print_info "Add nodejs repository..." curl -sL https://deb.nodesource.com/setup_8.x | sudo bash - -#================================================= -# ADD ONLYOFFICE REPOSITORY -#================================================= -ynh_print_info "Add OnlyOffice repository..." - -apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5 -echo "deb http://download.onlyoffice.com/repo/debian squeeze main" | sudo tee /etc/apt/sources.list.d/onlyoffice.list - #================================================= # REINSTALL DEPENDENCIES #================================================= @@ -131,7 +123,8 @@ echo onlyoffice-documentserver onlyoffice/ds-port select ${port} | sudo debconf- #================================================= ynh_print_info "Reinstalling OnlyOffice..." -ynh_package_install onlyoffice-documentserver +wget $source +ynh_package_install onlyoffice-documentserver_amd64.deb #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 3cc0254..e467898 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -112,7 +112,8 @@ ynh_system_user_create $app $final_path #================================================= ynh_print_info "Upgrading OnlyOffice..." -ynh_package_install onlyoffice-documentserver +wget $source +ynh_package_install onlyoffice-documentserver_amd64.deb ### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script. ### And create a backup of this file if the checksum is different. So the file will be backed up if the admin had modified it.