Update entry.sh

This commit is contained in:
wiaam96 2024-08-22 15:15:24 +03:00 committed by GitHub
parent ca31aac08a
commit e7378c9a5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,8 +44,11 @@ while true; do
done
if [ -z $var_token ] && [ $var_mode != "--hybrid_mode" ]; then
echo "Error: Token was not provided as input argument."
exit 1
var_token=$(env | grep 'AGENT_TOKEN=' | cut -d'=' -f2-)
if [ -z $var_token ]; then
echo "Error: Token was not provided as input argument."
exit 1
fi
fi
orchestration_service_installation_flags="--container_mode --skip_registration"