Skip to content

Commit

Permalink
adding new update script
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed May 30, 2024
1 parent cf7c29b commit ba365f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pioreactor/pubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def on_message(message):
client = subscribe_and_callback(on_message, topics_to_prune)
sleep(1)
for topic in topics.copy():
publish(topic, None, retain=True)
client.publish(topic, None, retain=True)

client.disconnect()

Expand Down
9 changes: 9 additions & 0 deletions update_scripts/upcoming/update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -xeu


export LC_ALL=C


echo "CONFIG_PATH=/home/pioreactor/.pioreactor/config.ini" >> /var/www/pioreactorui/.env || :

0 comments on commit ba365f5

Please sign in to comment.