[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

/var/mail vs /var/spool/mail (Was: serveurs)



Didier Chalm wrote:

> Dans son message du 8/2/2001, Eric VB écrivait:
> 
> > Moi j'ai une slink updatée dist-upgradée (si, si ! ... bon, une woody quoi) et
> > 
> > 
> > lrwxrwxrwx    1 root     root            7 déc 30 13:59 mail -> ../mail
> > 
> > 
> > Dingue, non ?
> 
> Au temps pour moi... j'ai dit 'pure potato' mais en fait, c'est bien une slink upgradee.  :-\  (Et j'ai la meme chose sur mes 2 PCs - sauf que sur le 2e, je monte /var/mail du 1er en NFS)
> Ca viendrait pas du MTA installe ? Moi j'ai 'exim' ...

C'est base-files et/ou libc6 et/ou sendmail:

bidule:/var/lib/dpkg/info$ grep var/mail *
base-files.postinst:  install_directory var/mail 2775 mail
base-files.postinst:  if [ ! -L /var/mail ] && [ ! -d /var/mail ]; then
base-files.postinst:    echo "Symlinking /var/mail to /var/spool/mail"
base-files.postinst:    ln -sf spool/mail /var/mail
libc6.postinst: if [ ! -d /var/mail ] && [ ! -L /var/mail ]; then
libc6.postinst:     ln -sf spool/mail /var/mail

mrbean:/var/lib/dpkg/info$ grep var/spool/mail *
base-files.postinst:  if [ ! -L /var/spool/mail ]; then
base-files.postinst:    ln -s ../mail /var/spool/mail
base-files.postinst:  if [ ! -d /var/spool/mail ] && [ ! -L /var/spool/mail ]; then
base-files.postinst:      echo "Restoring /var/spool/mail symlink."
base-files.postinst:      ln -sf `cat /etc/base-files.mailsymlink` /var/spool/mail
base-files.postinst:      install_directory var/spool/mail 2775 mail
base-files.postinst:    echo "Symlinking /var/mail to /var/spool/mail"
base-files.preinst:  if [ -L /var/spool/mail ]; then
base-files.preinst:    echo "Hmmm, it seems /var/spool/mail is a symlink."
base-files.preinst:    find /var/spool/mail -printf "%l\n" > /etc/base-files.mailsymlink
sendmail.postinst:if [ ! -d /var/spool/mail ]; then
sendmail.postinst:    mkdir /var/spool/mail
sendmail.postinst:    chown root.mail /var/spool/mail
sendmail.postinst:    chmod 03775 /var/spool/mail
-- 
Edouard G. Parmelan
http://egp.free.fr



Reply to: