1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/syncthing_ynh.git synced 2024-09-03 20:26:23 +02:00

Merge pull request #84 from YunoHost-Apps/testing

Update upgrade
This commit is contained in:
yalh76 2021-07-01 22:23:48 +02:00 committed by GitHub
commit 3d2f2de982
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,6 +162,10 @@ ynh_script_progression --message="Updating a config file..."
config_file="$final_path/.config/syncthing/config.xml"
ynh_backup_if_checksum_is_different --file="$config_file"
# Recalculate and store the checksum of the file for the next upgrade.
ynh_store_file_checksum --file="$config_file"
#ynh_add_config --template="../conf/config.xml" --destination="$config_file"
chmod 400 "$config_file"