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:
parent
913d44d5b7
commit
64356e5e35
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue