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
|
||||
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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue