mirror of
https://github.com/YunoHost-Apps/lychee_ynh.git
synced 2024-09-03 19:36:36 +02:00
Fix
This commit is contained in:
parent
9a13c14cae
commit
d46e02198b
3 changed files with 5 additions and 4 deletions
|
@ -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)."
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue