From e926de87ae75cd74d71426d4540fa77e90c5d16e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Tue, 26 Apr 2016 16:08:00 +0200 Subject: [PATCH] [fix] Define final_path variable in restore script --- scripts/restore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index cde2e6b..dcea94c 100755 --- a/scripts/restore +++ b/scripts/restore @@ -11,7 +11,8 @@ app=${!#} backup_dir=$1 # Restore sources & data -sudo cp -a $backup_dir/sources/. /var/www/$app +final_path=/var/www/$app +sudo cp -a $backup_dir/sources/. $final_path # Restore permissions to app files # you may need to make some file and/or directory writeable by www-data (nginx user)