utils_of_wang / help_script.sh
walkingPenguin's picture
Update help_script.sh
27d0cfd verified
raw
history blame contribute delete
470 Bytes
#!/bin/bash -eu
# we MUST NEED this!!! It is save now!!!
sudo chmod 777 /
# Step 1: Run setup environment script
#django__django-11211
bash /files/$1/setup_env.sh > /dev/null 2>&1
# Step 2: Run setup repository script
bash /files/$1/setup_repo.sh > /dev/null 2>&1
sudo rm -rf /files/ > /dev/null
# Step 3: Add conda activation to bashrc
echo "source /opt/miniconda3/etc/profile.d/conda.sh && conda activate testbed" >> ~/.bashrc
echo "Setup environment complete!"