浏览代码

[fix] Define final_path variable in restore script

Jérôme Lebleu 9 年之前
父节点
当前提交
e926de87ae
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      scripts/restore

+ 2 - 1
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)