mirror of
https://github.com/YunoHost-Apps/onlyoffice_ynh.git
synced 2024-09-03 19:56:11 +02:00
commit
10bf5358ca
6 changed files with 26 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue