fix: add startup script for bec
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user