From 8bee3febda789b40c60bb2370e90c78a792566e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Sun, 12 Mar 2017 20:56:26 +0100 Subject: [PATCH] fix backup and restore --- scripts/restore | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/restore b/scripts/restore index b432409..4ca9bd8 100644 --- a/scripts/restore +++ b/scripts/restore @@ -29,9 +29,9 @@ sudo chown -R www-data: $final_path/data/ sudo chown -R www-data: $final_path/extensions/ # Restore conf files -ynh_backup "www" "$final_path" -ynh_backup "nginx.conf" /etc/nginx/conf.d/$domain.d/$app.conf -ynh_backup "$app.cron" /etc/cron.d/$app +sudo cp -a www/. $final_path +sudo cp nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf +ynh_backup $app.cron /etc/cron.d/$app # Restore mysql dump ynh_mysql_create_db "$dbname" "$dbuser" "$dbpass"