1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/collabora_ynh.git synced 2024-09-03 18:16:25 +02:00
This commit is contained in:
ericgaspar 2021-08-06 10:09:07 +02:00
parent dd03535105
commit d79c3798c9
3 changed files with 5 additions and 0 deletions

View file

@ -67,6 +67,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port
#=================================================
# CONFIGURE ONLYOFFICE
#=================================================
ynh_script_progression --message="Installing config file..." --weight=2
# Turns out we need to create/copy this file BEFORE the actual .deb install,
# otherwise stupid collabora will expect to find a certificate file in its own
@ -74,6 +75,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port
# because we're in a reverse proxy context...
mkdir -p /etc/loolwsd
ynh_add_config --template="../conf/loolwsd.xml" --destination="/etc/loolwsd/loolwsd.xml"
chown lool: "/etc/loolwsd/loolwsd.xml"
#=================================================
# INSTALL DEPENDENCIES

View file

@ -52,6 +52,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_script_progression --message="Restoring the configuration..." --weight=3
ynh_restore_file --origin_path="/etc/loolwsd/loolwsd.xml"
chown lool: "/etc/loolwsd/loolwsd.xml"
#=================================================
# SPECIFIC RESTORATION

View file

@ -74,8 +74,10 @@ ynh_add_nginx_config
#=================================================
# UPGRADE CONFIG
#=================================================
ynh_script_progression --message="Upgrading config file..." --weight=2
ynh_add_config --template="../conf/loolwsd.xml" --destination="/etc/loolwsd/loolwsd.xml"
chown lool: "/etc/loolwsd/loolwsd.xml"
#=================================================
# UPGRADE DEPENDENCIES