1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/onlyoffice_ynh.git synced 2024-09-03 19:56:11 +02:00
This commit is contained in:
ericgaspar 2021-09-18 09:47:30 +02:00
parent 3948b9e864
commit db026772e9
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 19 additions and 2 deletions

View file

@ -128,7 +128,7 @@ ynh_script_progression --message="Install OnlyOffice..."
# 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 ...
ynh_exec_warn_less ynh_add_app_dependencies --package="onlyoffice-documentserver"
ynh_exec_warn_less ynh_add_app_dependencies --package="onlyoffice-documentserver ttf-mscorefonts-installer"
#=================================================
# MODIFY A CONFIG FILE
@ -145,6 +145,23 @@ ynh_script_progression --message="Storing the config file checksum..."
# Calculate and store the config file checksum into the app settings
ynh_store_file_checksum --file="/etc/onlyoffice/documentserver/default.json"
#=================================================
# RELOAD ONLYOFFICE
#=================================================
ynh_script_progression --message="Reloading RabbitMQ..."
systemctl enable rabbitmq-server
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --time --weight=1
yunohost service add rabbitmq-server --description="A short description of the app" --log="/var/log/$app/$app.log"
# Start a systemd service
ynh_systemd_action --service_name=rabbitmq-server --action="start" --log_path="systemd"
#=================================================
# RELOAD ONLYOFFICE
#=================================================

View file

@ -123,7 +123,7 @@ echo onlyoffice-documentserver onlyoffice/db-name string $db_name | debconf-set-
#=================================================
ynh_script_progression --message="Upgrading OnlyOffice..."
ynh_exec_warn_less ynh_add_app_dependencies --package="onlyoffice-documentserver"
ynh_exec_warn_less ynh_add_app_dependencies --package="onlyoffice-documentserver ttf-mscorefonts-installer"
#=================================================
# MODIFY A CONFIG FILE