Files
csaxs_bec/bin/setup_bec.sh
2023-09-09 09:44:56 +02:00

45 lines
833 B
Bash
Executable File

if [! "pc15543" == "$hostname" ]; then
echo "Please run this script on pc15543"
exit 1
fi
module add psi-python38/2020.11
module add tmux/3.2
module add redis/7.0.12
cd ~/Data10
mkdir -p software/
cd software
git clone https://gitlab.psi.ch/bec/bec.git
git clone https://gitlab.psi.ch/bec/ophyd_devices.git
git clone https://gitlab.psi.ch/bec/csaxs-bec.git
git clone https://gitlab.psi.ch/bec/bec-widgets.git
python -m venv ./bec_venv
source ./bec_venv/bin/activate
cd bec
pip install -e ./bec_server[dev]
cd ../csaxs-bec
pip install -e .[dev]
read -p "Do you want to set the current BEC account to $whoami? (yes/no) " yn
case $yn in
yes ) echo ok, setting account to $whoami;
redis-cli SET internal/account:val $whoami;;
no ) echo ;;
* ) echo invalid response;
exit 1;;
esac
$pwd/bin/open_tunnel.sh