diff --git a/data/hooks/conf_regen/15-nginx b/data/hooks/conf_regen/15-nginx index f9cae91f..5bc5d4ab 100644 --- a/data/hooks/conf_regen/15-nginx +++ b/data/hooks/conf_regen/15-nginx @@ -67,7 +67,7 @@ if [ -f /etc/yunohost/installed ]; then | sed 's|/etc/nginx/conf.d/||' \ | sed 's|.conf||') [[ $domain_list =~ $domain ]] \ - || ($(sudo yunohost service saferemove -s nginx $file) == "True" \ + || ([[ $(sudo yunohost service saferemove -s nginx $file) == "True" ]] \ && (rm -r /etc/nginx/conf.d/$domain.d || true)) done