1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/onlyoffice_ynh.git synced 2024-09-03 19:56:11 +02:00

Fix backup/restore of the configuration

This commit is contained in:
yalh76 2019-02-27 23:13:03 +01:00
parent 913d44d5b7
commit 64356e5e35
2 changed files with 14 additions and 0 deletions

View file

@ -55,6 +55,13 @@ ynh_print_info "Backing up the PostgreSQL database..."
ynh_psql_dump_db "$db_name" > db.sql
#=================================================
# SPECIFIC BACKUP
#=================================================
ynh_print_info "Backing up the configuration..."
ynh_backup "/etc/onlyoffice"
#=================================================
# END OF SCRIPT
#=================================================

View file

@ -81,6 +81,13 @@ chown -R $app: $final_path
#=================================================
# SPECIFIC RESTORATION
#=================================================
# RESTORE THE CONFIGURATION
#=================================================
ynh_print_info "Restoring the configuration..."
ynh_restore_file "/etc/onlyoffice"
#=================================================
# ADD NODEJS REPOSITORY
#=================================================