diff --git a/scripts/upgrade b/scripts/upgrade index c038fef..2a799eb 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -38,8 +38,9 @@ fi ynh_script_progression --message="Updating a configuration file..." --weight=1 ynh_add_config --template="mosquitto.conf" --destination="/etc/mosquitto/conf.d/default.conf" -ynh_add_config --template="passwd" --destination="/etc/mosquitto/passwd" +ynh_delete_file_checksum --file="/etc/mosquitto/passwd" +ynh_add_config --template="passwd" --destination="/etc/mosquitto/passwd" mosquitto_passwd -U "/etc/mosquitto/passwd" ynh_store_file_checksum --file="/etc/mosquitto/passwd"