Kayou
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
scripts/upgrade
|
|
@ -151,9 +151,11 @@ ynh_script_progression --message="Upgrading nginx web server configuration..." - |
|
|
ynh_backup_if_checksum_is_different --file="/etc/nginx/conf.d/$domain.d/$app.conf" |
|
|
ynh_backup_if_checksum_is_different --file="/etc/nginx/conf.d/$domain.d/$app.conf" |
|
|
|
|
|
|
|
|
# Delete current nginx configuration to be able to check if .well-known is already served. |
|
|
# Delete current nginx configuration to be able to check if .well-known is already served. |
|
|
ynh_remove_nginx_config $YNH_PHP_VERSION |
|
|
|
|
|
|
|
|
ynh_remove_nginx_config |
|
|
ynh_app_setting_delete --app=$app --key="checksum__etc_nginx_conf.d_$domain.d_$app.conf" |
|
|
ynh_app_setting_delete --app=$app --key="checksum__etc_nginx_conf.d_$domain.d_$app.conf" |
|
|
|
|
|
|
|
|
|
|
|
ynh_systemd_action --service_name=nginx --action=reload |
|
|
|
|
|
|
|
|
# Check if .well-known is available for this domain |
|
|
# Check if .well-known is available for this domain |
|
|
if is_url_handled --domain="$domain" --path="/.well-known/caldav" || is_url_handled --domain="$domain" --path="/.well-known/carddav" |
|
|
if is_url_handled --domain="$domain" --path="/.well-known/caldav" || is_url_handled --domain="$domain" --path="/.well-known/carddav" |
|
|
then |
|
|
then |
|
|
|