|
sudo sed -i "s/^persistence true/persistence false/" /etc/mosquitto/mosquitto.conf |
As per most configurations, instead of editing a configuration file that may well be modified on upgrade, use drop in file of settings in the '/etc/mosquitto/conf.d` folder.