From 10380727e9ddf973c88c08c25c0d388ad5482766 Mon Sep 17 00:00:00 2001 From: Fayaaz Date: Tue, 28 Jul 2020 03:41:59 +0100 Subject: [PATCH] Fix permissions some more... --- stage3/02-desktop/02-run.sh | 3 ++- stage3/02-desktop/03-run.sh | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/stage3/02-desktop/02-run.sh b/stage3/02-desktop/02-run.sh index a528486..e78ddf9 100755 --- a/stage3/02-desktop/02-run.sh +++ b/stage3/02-desktop/02-run.sh @@ -1,6 +1,7 @@ # Add i3 config file -mkdir -p -m 644 ${ROOTFS_DIR}/home/pi/.config/i3/ +mkdir -p -m 755 ${ROOTFS_DIR}/home/pi/.config/i3/ install -m 755 files/i3.conf ${ROOTFS_DIR}/home/pi/.config/i3/config on_chroot << EOF chown -R pi:root /home/pi/.config/i3/ + chmod -R 755 /home/pi/.config/ EOF diff --git a/stage3/02-desktop/03-run.sh b/stage3/02-desktop/03-run.sh index 0cfd5d5..f8958d1 100755 --- a/stage3/02-desktop/03-run.sh +++ b/stage3/02-desktop/03-run.sh @@ -1,11 +1,13 @@ # Do mixxx stuff like copy the udev rules and config file -mkdir -p -m 644 ${ROOTFS_DIR}/home/pi/.mixxx -install -m 644 files/mixxx.cfg ${ROOTFS_DIR}/home/pi/.mixxx/mixxx.cfg -install -m 440 files/udev.mixxx ${ROOTFS_DIR}/etc/udev/rules.d/69-mixxx-usb-uaccess.rules +mkdir -p -m 755 ${ROOTFS_DIR}/home/pi/.mixxx +install -m 755 files/mixxx.cfg ${ROOTFS_DIR}/home/pi/.mixxx/mixxx.cfg on_chroot << EOF chown -R pi:root /home/pi/.mixxx + chmod -R 755 /home/pi/.mixxx/ EOF +install -m 644 files/udev.mixxx ${ROOTFS_DIR}/etc/udev/rules.d/69-mixxx-usb-uaccess.rules + # USB Mount mkdir -m 644 ${ROOTFS_DIR}/etc/systemd/system/systemd-udevd.service.d