Skip to content

Commit

Permalink
fix log dest
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Apr 7, 2022
1 parent 41c545e commit fee4f06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker/Mosquitto/startMosquitto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ echo "INFO: startMosquitto..."

if [ "${CONGIF_FROM_ENV}" = true ] ; then
cp /etc/mosquitto/mosquitto.conf.orig /etc/mosquitto/mosquitto.conf
sed -i 's/log_dest file \/var\/log\/mosquitto\/mosquitto.log/log_dest stderr/g' /etc/mosquitto/mosquitto.conf
echo "log_timestamp true" >> /etc/mosquitto/mosquitto.conf
echo "log_timestamp_format %Y-%m-%dT%H:%M:%S" >> /etc/mosquitto/mosquitto.conf
echo 'listener 9001' >> /etc/mosquitto/mosquitto.conf
Expand Down

0 comments on commit fee4f06

Please sign in to comment.