diff options
| author | Serge Schneider <serge@raspberrypi.org> | 2016-11-06 14:46:27 +0000 |
|---|---|---|
| committer | Serge Schneider <serge@raspberrypi.org> | 2016-11-14 18:03:57 +0000 |
| commit | 354be6e00b08739473cd85e44235dfc2c2d8fede (patch) | |
| tree | 7f3e73a5e820a6cd02dcf2474490ed3b2d28e792 | |
| parent | 88622b63d38e2cd5c187e21b3326a5d0ac3993f6 (diff) | |
Fix .config permissions
| -rwxr-xr-x | export-image/03-finalise/01-run.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/export-image/03-finalise/01-run.sh b/export-image/03-finalise/01-run.sh index 0ffe1e6..c5a83c1 100755 --- a/export-image/03-finalise/01-run.sh +++ b/export-image/03-finalise/01-run.sh @@ -7,6 +7,10 @@ on_chroot sh -e - <<EOF hardlink -t /usr/share/doc EOF +if [ -d ${ROOTFS_DIR}/home/pi/.config ]; then + chmod 700 ${ROOTFS_DIR}/home/pi/.config +fi + rm -f ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache rm -f ${ROOTFS_DIR}/usr/sbin/policy-rc.d rm -f ${ROOTFS_DIR}/usr/bin/qemu-arm-static |
