Skip to content

Commit

Permalink
fixed issue with bash script not running
Browse files Browse the repository at this point in the history
  • Loading branch information
ckacerguis committed Aug 23, 2017
1 parent 84a33d6 commit 7b2cea0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ ENV MQTT_USER="guest"
ENV MQTT_PASS="guest"
ENV MQTT_TOPIC="homeassistant/sensor/honeywell"

COPY rtl2mqtt.sh /
CMD ["/rtl2mqtt.sh"]
COPY ./rtl2mqtt.sh /
RUN chmod +x /rtl2mqtt.sh
ENTRYPOINT ["/rtl2mqtt.sh"]
3 changes: 2 additions & 1 deletion rtl2mqtt.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

# A simple script that will receive events from a RTL433 SDR
# It is tuned to listen to 345.00 MHz with the Honeywell driver
Expand All @@ -11,6 +11,7 @@ export LANG=C
PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"

# Start the listener and enter an endless loop
echo "Starting RTL..."
/usr/local/bin/rtl_433 -f 345000000 -F json -R 70 | while read line
do
# Create file with touch /tmp/rtl_433.log if logging is needed
Expand Down

0 comments on commit 7b2cea0

Please sign in to comment.