diff --git a/.drone.yml b/.drone.yml index b396900..6c126e8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,8 +8,9 @@ steps: image: cburki/mosquitto-clients commands: - cat hosts - - for h in $(cat hosts); do mosquitto_sub -h raum.ctdo.de -t \"homie/${h}/\$localip\" -C 1 | tr -d '\n'; done >lastknownips - - for h in $(cat hosts); do echo "${h},$(mosquitto_sub -h raum.ctdo.de -t \"homie/${h}/\$localip\" -C 1 | tr -d '\n')"; done >lastknownhostips + - for h in $(cat hosts); do echo $h; echo ${h}; done + - for h in $(cat hosts); do mosquitto_sub -h raum.ctdo.de -t \"homie/$h/\$localip\" -C 1 | tr -d '\n'; done >lastknownips + - for h in $(cat hosts); do echo "${h},$(mosquitto_sub -h raum.ctdo.de -t \"homie/$h/\$localip\" -C 1 | tr -d '\n')"; done >lastknownhostips # - mosquitto_sub -h raum.ctdo.de -t "homie/${HOST}/\$localip" -C 1 | tr -d '\n' # - mosquitto_sub -h raum.ctdo.de -t "homie/${HOST}/\$localip" -C 1 | tr -d '\n' >lastknownip - cat lastknownips