aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorSam Tygier <[email protected]>2018-12-09 22:52:03 +0000
committerXECDesign <[email protected]>2018-12-21 04:09:47 +0000
commitd07096ebb565bc9ac97974895c57d88b0e82ce23 (patch)
tree98a718a8d82717f850136f44aa61f9492472562f /build.sh
parentd1b747747c81d34c6779c2ac9bb86fcbfac79c6c (diff)
Allow setting user name and password from config
Add FIRST_USER_NAME and FIRST_USER_PASS variables that can be set in the config (or enviroment). Defaults to the standard pi and raspberry.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index ebeb46a..4c8c3a3 100755
--- a/build.sh
+++ b/build.sh
@@ -141,6 +141,9 @@ export WORK_DIR="${WORK_DIR:-"${BASE_DIR}/work/${IMG_DATE}-${IMG_NAME}"}"
export DEPLOY_DIR=${DEPLOY_DIR:-"${BASE_DIR}/deploy"}
export LOG_FILE="${WORK_DIR}/build.log"
+export FIRST_USER_NAME=${FIRST_USER_NAME:-pi}
+export FIRST_USER_PASS=${FIRST_USER_PASS:-raspberry}
+
export BASE_DIR
export CLEAN