From d285d2f7d395feb8853eca81bd0ae4d326be2444 Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Mon, 15 Mar 2021 11:17:57 +0300 Subject: [PATCH] add ACCEPT_EULA=Y env var (#2908) --- images/linux/scripts/installers/configure-environment.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/images/linux/scripts/installers/configure-environment.sh b/images/linux/scripts/installers/configure-environment.sh index e1cc0a0f2..9b2c2c6e0 100644 --- a/images/linux/scripts/installers/configure-environment.sh +++ b/images/linux/scripts/installers/configure-environment.sh @@ -1,10 +1,13 @@ #!/bin/bash -e -#Set ImageVersion and ImageOS env variables +# Set ImageVersion and ImageOS env variables echo ImageVersion=$IMAGE_VERSION | tee -a /etc/environment echo ImageOS=$IMAGE_OS | tee -a /etc/environment -# Create a file to store user-related global environment variables +# Set the ACCEPT_EULA variable to Y value to confirm your acceptance of the End-User Licensing Agreement +echo ACCEPT_EULA=Y | tee -a /etc/environment + +# Create a file to store user-related global environment variables touch /etc/profile.d/env_vars.sh # Set BASH_ENV variable pointed to the file with user-related global environment variables for non-interactive sessions echo "BASH_ENV=/etc/profile.d/env_vars.sh" | tee -a /etc/environment