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

revert preinstall ttf-mscorefonts-installer, set YNH_INSTALL_APP_DEPENDENCIES_REPLACE to false

This commit is contained in:
Kayou 2024-04-17 23:43:38 +02:00 committed by GitHub
parent a716211c4e
commit 43d5f9daf9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 21 additions and 1 deletions

View file

@ -72,9 +72,14 @@ ram.runtime = "800M"
"libstdc++6",
"rabbitmq-server",
"libcurl4-openssl-dev",
"ttf-mscorefonts-installer",
]
# 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"

View file

@ -8,6 +8,18 @@
# PERSONAL HELPERS
#=================================================
_install_msfonts_deb() {
# Do not replace app dependencies
YNH_INSTALL_APP_DEPENDENCIES_REPLACE="false"
# 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

View file

@ -21,6 +21,7 @@ ynh_app_setting_set --app="$app" --key=jwt_secret --value="$jwt_secret"
#=================================================
ynh_script_progression --message="Install OnlyOffice..."
_install_msfonts_deb
_install_onlyoffice_deb
#=================================================

View file

@ -20,6 +20,7 @@ ynh_psql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name"
#=================================================
ynh_script_progression --message="Install OnlyOffice..."
_install_msfonts_deb
_install_onlyoffice_deb
#=================================================

View file

@ -22,6 +22,7 @@ ynh_script_progression --message="Upgrading OnlyOffice..."
ynh_backup_if_checksum_is_different --file="/etc/onlyoffice/documentserver/default.json"
_install_msfonts_deb
_install_onlyoffice_deb
#=================================================