yunohost/data/hooks/restore/29-conf_nginx
2015-10-04 12:48:56 +02:00

7 lines
259 B
Text

backup_dir="$1/conf/nginx"
# 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