Fix /var/mail permissions and symlink /var/spool/mail to /var/mail
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
name: filesystem
|
name: filesystem
|
||||||
description: The Tide Linux filesystem
|
description: The Tide Linux filesystem
|
||||||
version: 25.10.26
|
version: 25.10.31
|
||||||
revision: 1
|
revision: 1
|
||||||
architecture: any
|
architecture: any
|
||||||
output_architecture: any
|
output_architecture: any
|
||||||
|
|||||||
@@ -28,8 +28,10 @@ package() {
|
|||||||
install -dm755 "$BPM_OUTPUT"/var/{cache,local,log,mail,opt,spool}
|
install -dm755 "$BPM_OUTPUT"/var/{cache,local,log,mail,opt,spool}
|
||||||
install -dm755 "$BPM_OUTPUT"/var/lib/{color,misc,locate}
|
install -dm755 "$BPM_OUTPUT"/var/lib/{color,misc,locate}
|
||||||
|
|
||||||
mkdir -m750 "$BPM_OUTPUT"/root
|
install -dm750 "$BPM_OUTPUT"/root
|
||||||
mkdir -m1777 "$BPM_OUTPUT"/tmp "$BPM_OUTPUT"/var/tmp
|
install -dm1777 "$BPM_OUTPUT"/tmp
|
||||||
|
install -dm1777 "$BPM_OUTPUT"/var/tmp
|
||||||
|
install -dm1777 "$BPM_OUTPUT"/var/mail
|
||||||
|
|
||||||
ln -s usr/bin "$BPM_OUTPUT"/bin
|
ln -s usr/bin "$BPM_OUTPUT"/bin
|
||||||
ln -s usr/sbin "$BPM_OUTPUT"/sbin
|
ln -s usr/sbin "$BPM_OUTPUT"/sbin
|
||||||
@@ -37,6 +39,7 @@ package() {
|
|||||||
ln -s /proc/self/mounts "$BPM_OUTPUT"/etc/mtab
|
ln -s /proc/self/mounts "$BPM_OUTPUT"/etc/mtab
|
||||||
ln -s /run "$BPM_OUTPUT"/var/run
|
ln -s /run "$BPM_OUTPUT"/var/run
|
||||||
ln -s /run/lock "$BPM_OUTPUT"/var/lock
|
ln -s /run/lock "$BPM_OUTPUT"/var/lock
|
||||||
|
ln -s ../mail "$BPM_OUTPUT"/var/spool/mail
|
||||||
ln -s bash "$BPM_OUTPUT"/bin/sh
|
ln -s bash "$BPM_OUTPUT"/bin/sh
|
||||||
|
|
||||||
touch "$BPM_OUTPUT"/var/log/{btmp,lastlog,faillog,wtmp}
|
touch "$BPM_OUTPUT"/var/log/{btmp,lastlog,faillog,wtmp}
|
||||||
|
|||||||
Reference in New Issue
Block a user