ff
This commit is contained in:
parent
dd95e7493e
commit
107fcdb2be
1 changed files with 4 additions and 4 deletions
|
@ -14,18 +14,18 @@ echo ${GREEN}Run checks...${RESET}
|
||||||
|
|
||||||
# TODO ghier noch check output mit haken dran in grün
|
# TODO ghier noch check output mit haken dran in grün
|
||||||
if ! [ -f "./vault-pass" ]; then
|
if ! [ -f "./vault-pass" ]; then
|
||||||
echo "${RED}Vault-Pass File is missing!${RESET}"
|
echo -e "${RED}Vault-Pass File is missing!${RESET}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if ! [ -f "./id_ed25519" ]; then
|
if ! [ -f "./id_ed25519" ]; then
|
||||||
echo "${RED}SSH-Private-Key is missing!${RESET}"
|
echo -e "${RED}SSH-Private-Key is missing!${RESET}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ${GREEN}Pull image...${RESET}
|
echo -e ${GREEN}Pull image...${RESET}
|
||||||
docker pull --quiet ${IMAGE}
|
docker pull --quiet ${IMAGE}
|
||||||
|
|
||||||
echo ${GREEN}Start session...${RESET}
|
echo -e ${GREEN}Start session...${RESET}
|
||||||
docker run -it -v $PWD:/ansible-homeserver -w /ansible-homeserver ${IMAGE} tmux new -t ansible && git rev-parse --abbrev-ref HEAD && git config --global --add safe.directory /ansible-homeserver
|
docker run -it -v $PWD:/ansible-homeserver -w /ansible-homeserver ${IMAGE} tmux new -t ansible && git rev-parse --abbrev-ref HEAD && git config --global --add safe.directory /ansible-homeserver
|
||||||
|
|
||||||
# todo shellcheck
|
# todo shellcheck
|
||||||
|
|
Loading…
Reference in a new issue