1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lychee_ynh.git synced 2024-09-03 19:36:36 +02:00
This commit is contained in:
ericgaspar 2021-06-23 09:33:43 +02:00
parent 9a13c14cae
commit d46e02198b
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 5 additions and 4 deletions

View file

@ -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)."

View file

@ -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

View file

@ -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"