From bf5aef7ae03d857012812b16368123f405e2a661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikl=C3=B3s=20T=C3=B3th?= <tothmiklostibor@gmail.com> Date: Sun, 10 Jan 2021 23:25:36 +0100 Subject: [PATCH] better bootstrap.sh --- playbook-template/bootstrap.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/playbook-template/bootstrap.sh b/playbook-template/bootstrap.sh index dfb4074..cfe3f47 100644 --- a/playbook-template/bootstrap.sh +++ b/playbook-template/bootstrap.sh @@ -37,5 +37,10 @@ source .venv/bin/activate pip install -r requirements.python.txt ansible-galaxy install -r requirements.galaxy.yml ansible-playbook -i inventory.yaml playbook.yml + # to stay in our comfy virtualenv -exec bash +if [[ -n "$SHELL" ]] +then + SHELL="bash" +fi +exec "$SHELL" -- GitLab