freeleaps-ops/cluster/ansible/activate.sh
孙振宇 99e2a6a5e3 feat(ansible): add init and activate scripts for virtual environment setup
chore: add .gitignore for virtual environment files
refactor: move etcd configuration to manifests and remove obsolete files

Signed-off-by: 孙振宇 <>
2025-01-11 18:52:32 +08:00

15 lines
274 B
Bash
Executable File

#!/usr/bin/env bash
set -eu -o pipefail
# Check if `init.sh` has not run
if [ ! -d venv ]; then
echo "Please run init.sh first."
exit 1
fi
# Allows venv/bin/activate has permission to run
chmod +x venv/bin/activate
# Activate virtual env
source venv/bin/activate