2019-08-27 14:42:40 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Exit on command errors and treat unset variables as an error
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
# See comments in install script
|
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
2020-01-10 17:31:07 +01:00
|
|
|
final_path=/var/www/$app
|
2019-08-27 14:42:40 +02:00
|
|
|
|
|
|
|
# Source YunoHost helpers
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
ynh_app_setting_set $app final_path $final_path
|
|
|
|
# Download, check integrity, uncompress and patch the source from app.src
|
|
|
|
ynh_setup_source "$final_path"
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# NGINX CONFIGURATION
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
# Create a dedicated nginx config
|
|
|
|
#ynh_add_nginx_config
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# UPGRADE CONFIG
|
|
|
|
#=================================================
|
|
|
|
#cp -a ../conf/loolwsd.xml /etc/loolwsd
|
|
|
|
#ynh_replace_string "__NEXTCLOUDDOMAIN__" "$nextcloud_domain" "/etc/loolwsd/loolwsd.xml"
|
|
|
|
#ynh_replace_string "__PASSWORD__" "$password" "/etc/loolwsd/loolwsd.xml"
|
|
|
|
#systemctl restart loolwsd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If app is public, add url to SSOWat conf as skipped_uris
|
|
|
|
#if [[ $is_public -eq 1 ]]; then
|
|
|
|
# See install script
|
|
|
|
# ynh_app_setting_set "$app" unprotected_uris "/"
|
|
|
|
#fi
|
|
|
|
|
2020-01-10 17:31:07 +01:00
|
|
|
# Reload Nginx service
|
|
|
|
systemctl reload nginx
|
2019-08-27 14:42:40 +02:00
|
|
|
|