Prevent stupid mistakes

This commit is contained in:
Sandro - 2021-10-25 00:46:44 +02:00
parent 7c78829584
commit 3aed3990a5
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,11 @@ while [[ $# -gt 0 ]]; do
host=$1
target=${1//.hq.c3d2.de/}
target=${target//.c3d2.de/}
if [[ $target == keycloak ]]; then
echo "Deploying keycloak like this is a bad idea because the ssh connection ends up in the gitea container!"
exit 1
fi
;;
esac
shift