mirror of
https://github.com/YunoHost-Apps/grav_ynh.git
synced 2024-09-03 19:16:01 +02:00
Create backup directory upon restore
This commit is contained in:
parent
2b587f91fd
commit
68edebace1
1 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,9 @@ ynh_script_progression --message="Restoring the app main directory..." --weight=
|
||||||
|
|
||||||
ynh_restore_file --origin_path="$install_dir"
|
ynh_restore_file --origin_path="$install_dir"
|
||||||
|
|
||||||
|
# Grav will complain about missing backup directory, let's create it
|
||||||
|
mkdir -p "$install_dir/backup"
|
||||||
|
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
find "$install_dir" -type f -exec chmod 640 {} \;
|
find "$install_dir" -type f -exec chmod 640 {} \;
|
||||||
find "$install_dir/bin" -type f -exec chmod 750 {} \;
|
find "$install_dir/bin" -type f -exec chmod 750 {} \;
|
||||||
|
|
Loading…
Reference in a new issue