diff --git a/data/hooks/restore/29-conf_nginx b/data/hooks/restore/29-conf_nginx index 245c1248c..0795f53df 100644 --- a/data/hooks/restore/29-conf_nginx +++ b/data/hooks/restore/29-conf_nginx @@ -1,6 +1,7 @@ backup_dir="$1/conf/nginx" -sudo cp -a $backup_dir/. /etc/nginx/conf.d +# Copy all conf except apps specific conf located in DOMAIN.d +sudo find $backup_dir/ -mindepth 1 -maxdepth 1 -name '*.d' -or -exec sudo cp -a {} /etc/nginx/conf.d/ \; # Restart to use new conf and certs sudo service nginx restart