Answer the upgrade no-going-back prompt

For automated upgrade checks we need to ensure that the prompt
is answered, otherwise the upgrade will not go ahead.

Change-Id: I32e2b4554ef2fcf3fa2a8dead1ab5321fb392519
This commit is contained in:
Jesse Pretorius 2017-03-08 11:47:32 +00:00
parent f514e11f42
commit 51689d2e03

View File

@ -154,8 +154,10 @@ if [[ "${ACTION}" == "upgrade" ]]; then
# to bypass that for an automated test. # to bypass that for an automated test.
export I_REALLY_KNOW_WHAT_I_AM_DOING=true export I_REALLY_KNOW_WHAT_I_AM_DOING=true
# Execute the upgrade script. # To execute the upgrade script we need to provide
bash "$(dirname "${0}")/run-upgrade.sh" # an affirmative response to the warning that the
# upgrade is irreversable.
echo 'YES' | bash "$(dirname "${0}")/run-upgrade.sh"
fi fi