fix: add startup script for bec

This commit is contained in:
e20639
2023-09-13 17:13:36 +02:00
parent b2bb7064d8
commit e73048b036

View File

@@ -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