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