mirror of
https://github.com/YunoHost-Apps/fider_ynh.git
synced 2024-09-03 18:36:11 +02:00
[fix] Define final_path variable in restore script
This commit is contained in:
parent
e4befaebe5
commit
e926de87ae
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,8 @@ app=${!#}
|
||||||
backup_dir=$1
|
backup_dir=$1
|
||||||
|
|
||||||
# Restore sources & data
|
# 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
|
# Restore permissions to app files
|
||||||
# you may need to make some file and/or directory writeable by www-data (nginx user)
|
# you may need to make some file and/or directory writeable by www-data (nginx user)
|
||||||
|
|
Loading…
Reference in a new issue