Fix file permissions everywhere

This commit is contained in:
Fayaaz 2020-07-28 02:08:56 +01:00
parent 864979095b
commit f250983570
3 changed files with 8 additions and 3 deletions

View File

@ -16,4 +16,4 @@ rm -f ${ROOTFS_DIR}/etc/sudoers.d/010_pi-nopasswd
install -m 440 files/010_pi-nopasswd ${ROOTFS_DIR}/etc/sudoers.d/
echo pi - memlock 256000 >> ${ROOTFS_DIR}/etc/security/limits.conf
echo pi - rtprio 75 >> ${ROOTFS_DIR}/etc/security/limits.conf
echo pi - rtprio 99 >> ${ROOTFS_DIR}/etc/security/limits.conf

View File

@ -1,6 +1,7 @@
# Add i3 config file
install -m 755 files/i3.conf ${ROOTFS_DIR}/home/pi/.config/i3
mkdir -m 644 ${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/
chown -R pi:root /home/pi/.config/i3/
EOF

View File

@ -1,6 +1,10 @@
# Do mixxx stuff like copy the udev rules and config file
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
on_chroot << EOF
chown -R pi:root /home/pi/.mixxx
EOF
# USB Mount
mkdir -m 644 ${ROOTFS_DIR}/etc/systemd/system/systemd-udevd.service.d