mirror of
https://github.com/YunoHost-Apps/collabora_ynh.git
synced 2024-09-03 18:16:25 +02:00
fix
This commit is contained in:
parent
dd03535105
commit
d79c3798c9
3 changed files with 5 additions and 0 deletions
|
@ -67,6 +67,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port
|
||||||
#=================================================
|
#=================================================
|
||||||
# CONFIGURE ONLYOFFICE
|
# 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,
|
# 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
|
# 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...
|
# because we're in a reverse proxy context...
|
||||||
mkdir -p /etc/loolwsd
|
mkdir -p /etc/loolwsd
|
||||||
ynh_add_config --template="../conf/loolwsd.xml" --destination="/etc/loolwsd/loolwsd.xml"
|
ynh_add_config --template="../conf/loolwsd.xml" --destination="/etc/loolwsd/loolwsd.xml"
|
||||||
|
chown lool: "/etc/loolwsd/loolwsd.xml"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL DEPENDENCIES
|
# INSTALL DEPENDENCIES
|
||||||
|
|
|
@ -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_script_progression --message="Restoring the configuration..." --weight=3
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/loolwsd/loolwsd.xml"
|
ynh_restore_file --origin_path="/etc/loolwsd/loolwsd.xml"
|
||||||
|
chown lool: "/etc/loolwsd/loolwsd.xml"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC RESTORATION
|
# SPECIFIC RESTORATION
|
||||||
|
|
|
@ -74,8 +74,10 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPGRADE CONFIG
|
# UPGRADE CONFIG
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Upgrading config file..." --weight=2
|
||||||
|
|
||||||
ynh_add_config --template="../conf/loolwsd.xml" --destination="/etc/loolwsd/loolwsd.xml"
|
ynh_add_config --template="../conf/loolwsd.xml" --destination="/etc/loolwsd/loolwsd.xml"
|
||||||
|
chown lool: "/etc/loolwsd/loolwsd.xml"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPGRADE DEPENDENCIES
|
# UPGRADE DEPENDENCIES
|
||||||
|
|
Loading…
Reference in a new issue