Skip to content

Commit

Permalink
remove this feature for now
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed May 31, 2024
1 parent 18da2be commit acd23f1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion workspace/scripts/files/bash/firstboot_leader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@ sudo -u $USERNAME ssh-keyscan "$(hostname)".local >> $SSH_DIR/known_hosts
crudini --set --ini-options=nospace $PIO_DIR/config.ini cluster.topology leader_hostname "$(hostname)"
crudini --set --ini-options=nospace $PIO_DIR/config.ini cluster.topology leader_address "$(hostname)".local
crudini --set --ini-options=nospace $PIO_DIR/config.ini mqtt broker_address "$(hostname)".local
crudini --set --ini-options=nospace $PIO_DIR/config.ini local_access_point ssid "pioreactor_$HOSTNAME"

sqlite3 $DB_LOC "INSERT OR IGNORE INTO experiments (created_at, experiment, description) VALUES (STRFTIME('%Y-%m-%dT%H:%M:%f000Z', 'NOW'), 'Demo experiment', 'This is a demo experiment. Feel free to click around. When you are ready, create a new experiment in the dropdown to the left.');"
3 changes: 1 addition & 2 deletions workspace/scripts/files/bash/firstboot_leader_and_worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ sudo -u $USERNAME ssh-keyscan "$HOSTNAME".local >> $SSH_DIR/known_hosts

crudini --ini-options=nospace --set $PIO_DIR/config.ini cluster.topology leader_hostname "$HOSTNAME" \
--set $PIO_DIR/config.ini cluster.topology leader_address "$HOSTNAME".local \
--set $PIO_DIR/config.ini mqtt broker_address "$HOSTNAME".local \
--set $PIO_DIR/config.ini local_access_point ssid "pioreactor_$HOSTNAME"
--set $PIO_DIR/config.ini mqtt broker_address "$HOSTNAME".local

sqlite3 "$DB_LOC" "INSERT OR IGNORE INTO experiments (created_at, experiment, description) VALUES (STRFTIME('%Y-%m-%dT%H:%M:%f000Z', 'NOW'), 'Demo experiment', 'This is a demo experiment. Feel free to click around. When you are ready, create a new experiment in the dropdown to the left.');"
sqlite3 "$DB_LOC" "INSERT OR IGNORE INTO workers (pioreactor_unit, added_at, is_active) VALUES ('$HOSTNAME', STRFTIME('%Y-%m-%dT%H:%M:%f000Z', 'NOW'), 1);"
Expand Down

0 comments on commit acd23f1

Please sign in to comment.