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:
Christopher Brannon 2016-10-24 00:12:43 -07:00
parent e67da20955
commit 365e1db7ee
2 changed files with 6 additions and 2 deletions

View file

@ -64,7 +64,11 @@ make_system_dirs() {
cd var
ln -sf ../run .
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 ..
install -dm1777 tmp

View file

@ -1,7 +1,7 @@
# Template file for 'base-files'
pkgname=base-files
version=0.139
revision=2
revision=3
bootstrap=yes
depends="xbps-triggers"
short_desc="Void Linux base system files"