diff options
| author | rkubes <russkubes@yahoo.com> | 2019-01-14 17:39:48 -0600 |
|---|---|---|
| committer | XECDesign <XECDesign@users.noreply.github.com> | 2019-01-15 12:16:42 +1000 |
| commit | 189b8f0400f6f785ebd9b5fcf4ba47862d0d0928 (patch) | |
| tree | 41ec513d517a30f22498eb6a88477dd64776a524 /export-image | |
| parent | d7ef46b06a4b8c6d54751b6301f7b6f4ac9bb2ea (diff) | |
Fixed a hard reference to the 'pi' user name
Diffstat (limited to 'export-image')
| -rwxr-xr-x | export-image/04-finalise/01-run.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/export-image/04-finalise/01-run.sh b/export-image/04-finalise/01-run.sh index f5a5fd8..501fef3 100755 --- a/export-image/04-finalise/01-run.sh +++ b/export-image/04-finalise/01-run.sh @@ -8,8 +8,8 @@ on_chroot << EOF hardlink -t /usr/share/doc EOF -if [ -d "${ROOTFS_DIR}/home/pi/.config" ]; then - chmod 700 "${ROOTFS_DIR}/home/pi/.config" +if [ -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.config" ]; then + chmod 700 "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.config" fi rm -f "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache" |
