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

backup config before upgrade

This commit is contained in:
yalh76 2019-06-01 07:11:16 +02:00
parent 943315c808
commit ba2c1f3907

View file

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