[ubuntu] Fix static path in install.sh (#9138)

This commit is contained in:
Shamil Mubarakshin
2024-01-10 10:41:11 +01:00
committed by GitHub
parent ec4e51233f
commit c40faf56bf
3 changed files with 3 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ download_with_retry() {
} }
get_toolset_value() { get_toolset_value() {
local toolset_path="/imagegeneration/installers/toolset.json" local toolset_path="${INSTALLER_SCRIPT_FOLDER}/toolset.json"
local query=$1 local query=$1
echo "$(jq -r "$query" $toolset_path)" echo "$(jq -r "$query" $toolset_path)"

View File

@@ -259,7 +259,7 @@ build {
} }
provisioner "shell" { provisioner "shell" {
environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}"] environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}", "INSTALLER_SCRIPT_FOLDER=${var.installer_script_folder}"]
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
scripts = ["${path.root}/../scripts/build/install-powershell.sh"] scripts = ["${path.root}/../scripts/build/install-powershell.sh"]
} }

View File

@@ -259,7 +259,7 @@ build {
} }
provisioner "shell" { provisioner "shell" {
environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}"] environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}", "INSTALLER_SCRIPT_FOLDER=${var.installer_script_folder}"]
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'" execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
scripts = ["${path.root}/../scripts/build/install-powershell.sh"] scripts = ["${path.root}/../scripts/build/install-powershell.sh"]
} }