Commit 689a58ee authored by Ophélie Gagnard's avatar Ophélie Gagnard

automation/automation-script.sh: Pass the package list through "data-to-vm" parameter.

parent 86f4ef40
...@@ -9,6 +9,11 @@ LOG_FILE=/var/log/test-script-deployment.log ...@@ -9,6 +9,11 @@ LOG_FILE=/var/log/test-script-deployment.log
# redirect stdout and stderr to $LOG_FILE # redirect stdout and stderr to $LOG_FILE
exec >> "$LOG_FILE" 2>&1 exec >> "$LOG_FILE" 2>&1
if [ -z "$PACKAGES_TO_SCAN" ]; then
echo ERROR: Variable PACKAGES_TO_SCAN undefined.
echo Exiting.
exit
fi
if [ -z "$WENDELIN_URL" ]; then if [ -z "$WENDELIN_URL" ]; then
echo ERROR: Variable WENDELIN_URL undefined. echo ERROR: Variable WENDELIN_URL undefined.
echo Exiting. echo Exiting.
...@@ -33,12 +38,6 @@ URL_PATTERN="https://download.opensuse.org/repositories/home:/oph.nxd/Debian_11/ ...@@ -33,12 +38,6 @@ URL_PATTERN="https://download.opensuse.org/repositories/home:/oph.nxd/Debian_11/
APT_UTILITY_PACKAGES="sudo wget tree" APT_UTILITY_PACKAGES="sudo wget tree"
INSTALL_DEPENDENCIES_PACKAGES="dracut-core dracut dracut-network" INSTALL_DEPENDENCIES_PACKAGES="dracut-core dracut dracut-network"
UEFI_KEYS_DEPENDENCIES_PACKAGES="sbsigntool efitools python3" UEFI_KEYS_DEPENDENCIES_PACKAGES="sbsigntool efitools python3"
PACKAGES_TO_SCAN="
hello
tree
wget
gcc
"
APT_SPECIFIC_PACKAGES="${INSTALL_DEPENDENCIES_PACKAGES} ${UEFI_KEYS_DEPENDENCIES_PACKAGES}" APT_SPECIFIC_PACKAGES="${INSTALL_DEPENDENCIES_PACKAGES} ${UEFI_KEYS_DEPENDENCIES_PACKAGES}"
MCA_PACKAGE_FILE="${MCA_NAME_AND_VERSION}_amd64.deb" MCA_PACKAGE_FILE="${MCA_NAME_AND_VERSION}_amd64.deb"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment