File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,9 @@ all: toolchain go-tools chroot-tools
193
193
# its help will be displayed at the top of the help output.
194
194
include $(SCRIPTS_DIR ) /help.mk
195
195
196
+ # Set-up the Azure configuration for the build
197
+ include $(SCRIPTS_DIR ) /azure_config.mk
198
+
196
199
# Misc function defines
197
200
# Variable prerequisite tracking
198
201
include $(SCRIPTS_DIR ) /utils.mk
Original file line number Diff line number Diff line change
1
+ # Copyright (c) Microsoft Corporation.
2
+ # Licensed under the MIT License.
3
+
4
+ # By default pass original user's Azure configuration if running as root.
5
+ # Running as root is required by how the toolkit operates while
6
+ # in most cases the user expects to use their Azure configuration, thus the default.
7
+ USE_USER_AZURE_CONFIG ?= y
8
+ ifneq ($(SUDO_USER ) ,)
9
+ ifeq ($(USE_USER_AZURE_CONFIG),y)
10
+ export AZURE_CONFIG_DIR:=$(shell sudo -u "$(SUDO_USER)" bash -c 'echo $${AZURE_CONFIG_DIR:-$${HOME}/.azure}')
11
+ endif
12
+ endif
You can’t perform that action at this time.
0 commit comments