mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Merge pull request #266 from YunoHost-Apps/fix-caldav-carddav
fix caldav/carddav detection
This commit is contained in:
commit
3e02de4027
1 changed files with 4 additions and 1 deletions
|
@ -151,9 +151,12 @@ 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"
|
||||||
|
|
||||||
|
# Wait untils nginx has fully reloaded
|
||||||
|
ynh_systemd_action --service_name=nginx --action=reload --line_match="Reloaded" --log_path="systemd"
|
||||||
|
|
||||||
# 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
|
||||||
|
|
Loading…
Add table
Reference in a new issue