15 lines
400 B
Bash
15 lines
400 B
Bash
#!/bin/sh
|
|
|
|
if [ ! -f /etc/mailer.conf.pre-exim ]; then
|
|
echo "can't find /etc/mailer.conf.pre-exim, exim not disabled"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -f /etc/mailer.conf ]; then
|
|
mv -f /etc/mailer.conf /etc/mailer.conf.exim
|
|
mv -f /etc/mailer.conf.pre-exim /etc/mailer.conf
|
|
echo "exim mailer.conf disabled, old mailer.conf enabled"
|
|
else
|
|
echo "can't find /etc/mailer.conf, exim not disabled"
|
|
fi
|