From 43333ba262252cfe4436babd826a2244d2a67aeb Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 16 Apr 2024 19:01:06 +0200 Subject: [PATCH] Zeblgflr --- scripts/_common.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 8b70209..b470dfd 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -15,9 +15,7 @@ _add_synapse_endpoint_nginx_config() { fi # In case the domain changed for some reason - shopt -s extglob - old_endpoint_confs_for_this_app="$(ls /etc/nginx/conf.d/!($synapse_domain).d/$app.endpoint.conf 2>/dev/null)" - shopt -u extglob + old_endpoint_confs_for_this_app="$(ls /etc/nginx/conf.d/*.d/$app.endpoint.conf 2>/dev/null | grep -v "$synapse_domain.d")" for FILE in $old_endpoint_confs_for_this_app do ynh_delete_file_checksum --file="$FILE"