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

use resources for deb

This commit is contained in:
Kayou 2024-08-01 16:23:32 +02:00 committed by GitHub
parent c0518f7410
commit 0be8e98f08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 20 deletions

View file

@ -74,17 +74,15 @@ ram.runtime = "800M"
"libcurl4-openssl-dev",
]
# Manual install in scripts
# [resources.apt.extras.ttf]
# repo = "deb http://deb.debian.org/debian/ bullseye main contrib"
# key = "https://ftp-master.debian.org/keys/release-bullseye.asc"
# packages = ["ttf-mscorefonts-installer"]
# Manual install in scripts
# [resources.apt.extras.onlyoffice]
# repo = "https://download.onlyoffice.com/repo/debian squeeze main"
# key = "https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE"
# packages = "onlyoffice-documentserver"
[resources.sources.main]
amd64.url = "https://github.com/ONLYOFFICE/DocumentServer/releases/download/v8.0.1/onlyoffice-documentserver_amd64.deb"
amd64.sha256 = "82b2e59ff7d3064a2d35614be7669bec88735f0837dac786762f7ba6a595cff3"
arm64.url = "https://github.com/ONLYOFFICE/DocumentServer/releases/download/v8.0.1/onlyoffice-documentserver_arm64.deb"
arm64.sha256 = "3fe98049dc483b04f9deeaa935795c49ff6086649d7d51a4a8e67e2f1a7c6093"
rename = "onlyoffice-documentserver.deb"
autoupdate.asset.amd64 = "^onlyoffice-documentserver_amd64.deb$"
autoupdate.asset.arm64 = "^onlyoffice-documentserver_arm64.deb$"
autoupdate.strategy = "latest_github_release"
[resources.database]
type = "postgresql"

View file

@ -32,15 +32,8 @@ _install_onlyoffice_deb() {
# the install/configure of their package, which is awful since that will
# restart NGINX and the whole webadmin and maybe even the YunoHost command
# running the install...
# Do not replace app dependencies
YNH_INSTALL_APP_DEPENDENCIES_REPLACE="false"
# Can't do that in the manifest because we need the debconf-set-selections and postgresql already configured
ynh_exec_warn_less ynh_install_extra_app_dependencies \
--repo="https://download.onlyoffice.com/repo/debian squeeze main" \
--key="https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE" \
--package="onlyoffice-documentserver"
dpkg -i $install_dir/onlyoffice-documentserver.deb
}
#=================================================