diff --git a/scripts/upgrade b/scripts/upgrade index b2ef960..f8e177e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -125,6 +125,7 @@ ynh_install_extra_repo --repo="deb http://download.onlyoffice.com/repo/debian sq #================================================= ynh_print_info --message="Configuring Onlyoffice..." +ynh_backup_if_checksum_is_different --file="/etc/onlyoffice/documentserver/default.json" echo onlyoffice-documentserver onlyoffice/ds-port select $port | sudo debconf-set-selections echo onlyoffice-documentserver onlyoffice/db-host string 127.0.0.1 | sudo debconf-set-selections echo onlyoffice-documentserver onlyoffice/db-user string $db_user | sudo debconf-set-selections @@ -148,11 +149,9 @@ ynh_replace_string --match_string="\"rejectUnauthorized\": true" --replace_strin # STORE THE CONFIG FILE CHECKSUM #================================================= -ynh_backup_if_checksum_is_different --file="/etc/onlyoffice/documentserver/default.json" # Recalculate and store the checksum of the file for the next upgrade. ynh_store_file_checksum --file="/etc/onlyoffice/documentserver/default.json" - #================================================= # GENERIC FINALIZATION #=================================================