1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/onlyoffice_ynh.git synced 2024-09-03 19:56:11 +02:00

Merge pull request #1 from yalh76/fix_release

Fix release
This commit is contained in:
yalh76 2019-03-04 10:44:37 +01:00 committed by GitHub
commit 10bf5358ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 26 additions and 4 deletions

View file

@ -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

View file

@ -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": {

View file

@ -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

View file

@ -188,7 +188,8 @@ echo onlyoffice-documentserver onlyoffice/ds-port select ${port} | sudo debconf-
#=================================================
ynh_print_info "Install OnlyOffice..."
ynh_package_install onlyoffice-documentserver
wget $source
apt install -y ./onlyoffice-documentserver_amd64.deb
#=================================================
# MODIFY A CONFIG FILE

View file

@ -131,7 +131,8 @@ echo onlyoffice-documentserver onlyoffice/ds-port select ${port} | sudo debconf-
#=================================================
ynh_print_info "Reinstalling OnlyOffice..."
ynh_package_install onlyoffice-documentserver
wget $source
apt install -y ./onlyoffice-documentserver_amd64.deb
#=================================================
# GENERIC FINALIZATION

View file

@ -107,12 +107,28 @@ ynh_system_user_create $app $final_path
#=================================================
# SPECIFIC UPGRADE
#=================================================
# ADD NODEJS REPOSITORY
#=================================================
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
#=================================================
# UPGRADE ONLYOFFICE
#=================================================
ynh_print_info "Upgrading OnlyOffice..."
ynh_package_install onlyoffice-documentserver
wget $source
apt install -y ./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.