From e73048b036cb66245a342728a4b1a20cc2809fd7 Mon Sep 17 00:00:00 2001 From: e20639 Date: Wed, 13 Sep 2023 17:13:36 +0200 Subject: [PATCH] fix: add startup script for bec --- bin/setup_bec.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/setup_bec.sh b/bin/setup_bec.sh index 2ca42a8..66bbb89 100755 --- a/bin/setup_bec.sh +++ b/bin/setup_bec.sh @@ -1,5 +1,5 @@ -if [! "pc15543" == "$hostname" ]; then +if [ "pc15543.psi.ch" != "$(hostname)" ]; then echo "Please run this script on pc15543" exit 1 fi @@ -23,14 +23,15 @@ python -m venv ./bec_venv source ./bec_venv/bin/activate cd bec +git checkout sastt-online-changes pip install -e ./bec_server[dev] cd ../csaxs-bec pip install -e .[dev] -redis-server --protected-mode no & +#redis-server --protected-mode no & -read -p "Do you want to set the current BEC account to $whoami? (yes/no) " yn +read -p "Do you want to set the current BEC account to $(whoami)? (yes/no) " yn val=$(whoami) @@ -43,6 +44,6 @@ case $yn in esac -$pwd/bin/open_tunnel.sh +$(pwd)/open_tunnel.sh