diff --git a/scripts/install b/scripts/install index fd4dc40..67178c8 100644 --- a/scripts/install +++ b/scripts/install @@ -64,6 +64,7 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_add_config --template="../conf/passwd" --destination="/etc/mosquitto/passwd" mosquitto_passwd -U "/etc/mosquitto/passwd" +ynh_store_file_checksum --file="/etc/mosquitto/passwd" ynh_add_config --template="../conf/mosquitto.conf" --destination="/etc/mosquitto/conf.d/default.conf" diff --git a/scripts/upgrade b/scripts/upgrade index bb4376d..fa451ff 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -71,6 +71,7 @@ ynh_script_progression --message="Updating a configuration file..." --weight=1 ynh_add_config --template="../conf/passwd" --destination="/etc/mosquitto/passwd" mosquitto_passwd -U "/etc/mosquitto/passwd" +ynh_store_file_checksum --file="/etc/mosquitto/passwd" ynh_add_config --template="../conf/mosquitto.conf" --destination="/etc/mosquitto/conf.d/default.conf"