summaryrefslogtreecommitdiff
path: root/stage4
diff options
context:
space:
mode:
authorSam Tygier <samtygier@yahoo.co.uk>2018-12-09 22:52:03 +0000
committerXECDesign <XECDesign@users.noreply.github.com>2018-12-21 04:09:47 +0000
commitd07096ebb565bc9ac97974895c57d88b0e82ce23 (patch)
tree98a718a8d82717f850136f44aa61f9492472562f /stage4
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 'stage4')
-rwxr-xr-xstage4/02-extras/00-run.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/stage4/02-extras/00-run.sh b/stage4/02-extras/00-run.sh
index bd24ad8..6a24f82 100755
--- a/stage4/02-extras/00-run.sh
+++ b/stage4/02-extras/00-run.sh
@@ -1,7 +1,7 @@
#!/bin/bash -e
#Alacarte fixes
-install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/pi/.local"
-install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/pi/.local/share"
-install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/pi/.local/share/applications"
-install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/pi/.local/share/desktop-directories"
+install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.local"
+install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.local/share"
+install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.local/share/applications"
+install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.local/share/desktop-directories"