yunohost/data/hooks/restore/29-system_nginx

8 lines
143 B
Bash

#!/bin/bash
backup_dir="$1/nginx"
sudo cp -a $backup_dir/. /etc/nginx/conf.d
# Restart to use new conf and certs
sudo service nginx restart