From a716211c4ee0528df1d5877c91b747eddcf5af3b Mon Sep 17 00:00:00 2001 From: Kayou Date: Wed, 17 Apr 2024 23:37:03 +0200 Subject: [PATCH] set YNH_INSTALL_APP_DEPENDENCIES_REPLACE to false before calling ynh_install_extra_app_dependencies to avoid removing app dependencies --- scripts/_common.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 658bd36..57b23d3 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -8,14 +8,6 @@ # PERSONAL HELPERS #================================================= -_install_msfonts_deb() { - # Run this here because it's less verbose for some reason - ynh_exec_warn_less ynh_install_extra_app_dependencies \ - --repo="deb http://deb.debian.org/debian/ $(lsb_release --codename --short) main contrib" \ - --key="https://ftp-master.debian.org/keys/release-$(lsb_release --release --short).asc" \ - --package="ttf-mscorefonts-installer" -} - _install_onlyoffice_deb() { echo onlyoffice-documentserver onlyoffice/ds-port select "$port" | debconf-set-selections echo onlyoffice-documentserver onlyoffice/db-host string 127.0.0.1 | debconf-set-selections @@ -29,6 +21,9 @@ _install_onlyoffice_deb() { # 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" \