mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
base-files: do not create broken var/spool/mail/mail symlink.
And remove it if it was created by previous versions.
This commit is contained in:
parent
e67da20955
commit
365e1db7ee
2 changed files with 6 additions and 2 deletions
|
@ -64,7 +64,11 @@ make_system_dirs() {
|
||||||
cd var
|
cd var
|
||||||
ln -sf ../run .
|
ln -sf ../run .
|
||||||
ln -sf ../run/lock .
|
ln -sf ../run/lock .
|
||||||
ln -sf spool/mail mail
|
ln -sfn spool/mail mail
|
||||||
|
if [ -L spool/mail/mail -a "$(readlink spool/mail/mail)" = spool/mail ]; then
|
||||||
|
# Get rid of broken symlink created by older versions of base-files.
|
||||||
|
rm spool/mail/mail
|
||||||
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
install -dm1777 tmp
|
install -dm1777 tmp
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'base-files'
|
# Template file for 'base-files'
|
||||||
pkgname=base-files
|
pkgname=base-files
|
||||||
version=0.139
|
version=0.139
|
||||||
revision=2
|
revision=3
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
depends="xbps-triggers"
|
depends="xbps-triggers"
|
||||||
short_desc="Void Linux base system files"
|
short_desc="Void Linux base system files"
|
||||||
|
|
Loading…
Add table
Reference in a new issue