Skip to content

Commit

Permalink
cfg changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BIBOLV committed Nov 2, 2024
1 parent 1712e70 commit 144e814
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion wmbusmeters-ha-addon-edge/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ RUN chmod a+x /etc/services.d/nginx/run
RUN chmod a+x /etc/services.d/nginx/finish
RUN chmod a+x /etc/services.d/flask/run
RUN chmod a+x /etc/services.d/flask/finish
RUN chmod a+x /etc/services.d/wmbusmeters/run
RUN chmod a+x /etc/cont-init.d/nginx.sh

CMD ["/run.sh"]
ENTRYPOINT ["/init"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/with-contenv bashio
# ==============================================================================
# Start wmbusmeters service
# ==============================================================================

bashio::log.info "Starting wmbusmeters service."
exec /run.sh
5 changes: 1 addition & 4 deletions wmbusmeters-ha-addon-edge/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,4 @@ chmod a+x /wmbusmeters/mosquitto_pub.sh
#python3 /flask/app.py &

bashio::log.info "Running wmbusmeters ..."
/wmbusmeters/wmbusmeters --useconfig=$CONFIG_DATA_PATH

bashio::log.info "Run indefinitely, even if wmbusmetersd fails"
tail -f /dev/null
/wmbusmeters/wmbusmeters --usestdoutforlogging --useconfig=$CONFIG_DATA_PATH

0 comments on commit 144e814

Please sign in to comment.