From ad78191b38900cd38fbf7f2468a90cc6fa317e8b Mon Sep 17 00:00:00 2001 From: Daiane Angolini Date: Thu, 28 Apr 2022 16:40:22 -0300 Subject: [PATCH] setup-environment-internal: Fix syntax override ACCEPT_EULA Signed-off-by: Daiane Angolini --- setup-environment-internal | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup-environment-internal b/setup-environment-internal index 09fca85b..48338734 100644 --- a/setup-environment-internal +++ b/setup-environment-internal @@ -265,7 +265,7 @@ fi # that might (or not) come with a EULA. If a machine has a EULA, we # assume that its corresponding layers has conf/EULA/$MACHINE file # with the EULA text, which we will display to the user and request -# for acceptance. If accepted, the variable ACCEPT_EULA_$MACHINE is +# for acceptance. If accepted, the variable ACCEPT_EULA:$MACHINE is # set to 1 in auto.conf, which can later be used by the BSP. # If the env variable EULA_$MACHINE is set it is used by default, # without prompting the user. @@ -281,8 +281,8 @@ if [ -n "$EULA" ]; then # NOTE: indirect reference / dynamic variable if [ -n "${!EULA_MACHINE}" ]; then # the EULA_$MACHINE variable is set in the environment, so we just - # configure # ACCEPT_EULA_$MACHINE in auto.conf - echo "ACCEPT_EULA_$MACHINE = \"${!EULA_MACHINE}\"" >> conf/auto.conf + # configure # ACCEPT_EULA:$MACHINE in auto.conf + echo "ACCEPT_EULA:$MACHINE = \"${!EULA_MACHINE}\"" >> conf/auto.conf else # so we need to ask user if he/she accepts the EULA: cat <> conf/auto.conf + echo "ACCEPT_EULA:$MACHINE = \"1\"" >> conf/auto.conf ;; n|N) echo "EULA has not been accepted."