From 141937efdb59c56fb5abb208c411bea2db4b8d23 Mon Sep 17 00:00:00 2001 From: zamentur Date: Sun, 4 Oct 2015 12:48:56 +0200 Subject: [PATCH] [enh] Don't restore apps nginx conf in conf_nginx restore script (it's done by apps) --- data/hooks/restore/29-conf_nginx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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