From e3e50a567061b82c1a426442ff814cae8e3bdbff Mon Sep 17 00:00:00 2001 From: CamDavidsonPilon Date: Wed, 10 Apr 2024 09:26:33 -0400 Subject: [PATCH] require $ --- .../bash/add_new_pioreactor_worker_from_leader.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/workspace/scripts/files/bash/add_new_pioreactor_worker_from_leader.sh b/workspace/scripts/files/bash/add_new_pioreactor_worker_from_leader.sh index 4c3e1a7..0e02f08 100644 --- a/workspace/scripts/files/bash/add_new_pioreactor_worker_from_leader.sh +++ b/workspace/scripts/files/bash/add_new_pioreactor_worker_from_leader.sh @@ -56,11 +56,11 @@ sshpass -p $SSHPASS ssh-copy-id $USERNAME@$HOSTNAME_local # remove any existing config (for idempotent) # we do this first so the user can see it on the Pioreactors/ page UNIT_CONFIG=/home/$USERNAME/.pioreactor/config_"$HOSTNAME".ini -rm -f UNIT_CONFIG -touch UNIT_CONFIG -echo -e "# Any settings here are specific to $HOSTNAME, and override the settings in shared config.ini" >> UNIT_CONFIG -crudini --set UNIT_CONFIG pioreactor version 1.0 -crudini --set UNIT_CONFIG pioreactor bioreactor pioreactor_20ml +rm -f $UNIT_CONFIG +touch $UNIT_CONFIG +echo -e "# Any settings here are specific to $HOSTNAME, and override the settings in shared config.ini" >> $UNIT_CONFIG +crudini --set $UNIT_CONFIG pioreactor version 1.0 \ + --set $UNIT_CONFIG pioreactor bioreactor pioreactor_20ml # add worker to known hosts on leader ssh-keyscan $HOSTNAME_local >> "/home/$USERNAME/.ssh/known_hosts"