1
0
Fork 0
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:
tituspijean 2024-04-17 22:24:57 +02:00
parent 2b587f91fd
commit 68edebace1
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -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 {} \;