From 805c502a0d6dcda90fe2038c2a1fad5646d7c88c Mon Sep 17 00:00:00 2001 From: CamDavidsonPilon Date: Wed, 3 Apr 2024 11:33:49 -0400 Subject: [PATCH] update desc --- workspace/scripts/files/bash/firstboot_leader.sh | 2 +- workspace/scripts/files/bash/firstboot_leader_and_worker.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/workspace/scripts/files/bash/firstboot_leader.sh b/workspace/scripts/files/bash/firstboot_leader.sh index 3686c30..b3f8f94 100644 --- a/workspace/scripts/files/bash/firstboot_leader.sh +++ b/workspace/scripts/files/bash/firstboot_leader.sh @@ -25,4 +25,4 @@ crudini --set --ini-options=nospace $PIO_DIR/config.ini cluster.topology leader_ 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, click the [New experiment] above.');" \ No newline at end of file +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.');" \ No newline at end of file diff --git a/workspace/scripts/files/bash/firstboot_leader_and_worker.sh b/workspace/scripts/files/bash/firstboot_leader_and_worker.sh index 0aac7f8..3aca8a4 100644 --- a/workspace/scripts/files/bash/firstboot_leader_and_worker.sh +++ b/workspace/scripts/files/bash/firstboot_leader_and_worker.sh @@ -26,7 +26,7 @@ crudini --ini-options=nospace --set $PIO_DIR/config.ini cluster.topology leader --set $PIO_DIR/config.ini mqtt broker_address "$HOSTNAME".local \ --set $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, click the [New experiment] above.');" +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);" sqlite3 "$DB_LOC" "INSERT OR IGNORE INTO experiment_worker_assignments (pioreactor_unit, experiment, assigned_at) VALUES ('$HOSTNAME', 'Demo experiment', STRFTIME('%Y-%m-%dT%H:%M:%f000Z', 'NOW'));"