1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

Fix restore directory permissions

User IDs might change between backup and restore. We need to chown the install_dir when restoring.
This commit is contained in:
Salamandar 2023-10-31 10:02:58 +01:00 committed by GitHub
parent 84712068f3
commit 9494341bfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,8 @@ source /usr/share/yunohost/helpers
ynh_script_progression --message="Restoring the app main directory..." --weight=1
ynh_restore_file --origin_path="$install_dir"
chmod -R o-rwx "$install_dir"
chown -R "$app:www-data" "$install_dir"
#=================================================
# SPECIFIC RESTORATION