From d46e02198b6e6d53e8f85b8ffd9d58eb80d8d9aa Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 23 Jun 2021 09:33:43 +0200 Subject: [PATCH] Fix --- scripts/backup | 4 ++-- scripts/restore | 4 ++-- scripts/upgrade | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/backup b/scripts/backup index 7645bce..f57412d 100755 --- a/scripts/backup +++ b/scripts/backup @@ -19,7 +19,7 @@ ynh_abort_if_errors #================================================= # LOAD SETTINGS #================================================= -ynh_print_info --message="Backing up Lychee..." +ynh_print_info --message="Loading installation settings..." app=$YNH_APP_INSTANCE_NAME @@ -71,4 +71,4 @@ ynh_mysql_dump_db --database="$db_name" > db.sql # END OF SCRIPT #================================================= -ynh_print_info --message="Backup script completed for Lychee. (YunoHost will then actually copy those files to the archive)." +ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." diff --git a/scripts/restore b/scripts/restore index a0630a7..d8d606d 100755 --- a/scripts/restore +++ b/scripts/restore @@ -76,8 +76,8 @@ ynh_script_progression --message="Restoring $app data..." # Use --not_mandatory for the data directory, because if the backup has been made with BACKUP_CORE_ONLY, there's no data into the backup. ynh_restore_file --origin_path="$public_path" --not_mandatory -chmod 755 $public_path -chown -R $app:www-data $public_path +chmod 755 "$public_path" +chown -R $app:www-data "$public_path" #================================================= # REINSTALL DEPENDENCIES diff --git a/scripts/upgrade b/scripts/upgrade index 7108994..3fca88d 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -98,6 +98,7 @@ then fi chmod 750 "$final_path" +chmod 750 "$final_path/bootstrap/cache" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path"