Fixed a hard reference to the 'pi' user name

This commit is contained in:
rkubes 2019-01-14 17:39:48 -06:00
parent d7ef46b06a
commit e2c18394b7

View File

@ -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"