~ubuntu-branches/ubuntu/vivid/postfix/vivid-proposed

« back to all changes in this revision

Viewing changes to auxiliary/MacOSX/activate-sendmail

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2005-02-27 09:33:07 UTC
  • Revision ID: james.westby@ubuntu.com-20050227093307-cn789t27ibnlh6tf
Tags: upstream-2.1.5
ImportĀ upstreamĀ versionĀ 2.1.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# Written by Gerben Wierda, Oct 2001. I waive every copyright on this and
 
4
# I also do not give any warranty.
 
5
 
 
6
. ./defines
 
7
 
 
8
. ./deactivate-postfix
 
9
 
 
10
# Activate binaries
 
11
if [ ! -e ${SENDMAILBACKUPDIR}/sendmail ]
 
12
then
 
13
        echo "Something is wrong: there is no existing sendmail binary backup"
 
14
        exit 1;
 
15
else
 
16
        echo "Restoring sendmail versions of sendmail programs from backup..."
 
17
        (cd ${SENDMAILBACKUPDIR}; tar cf - sendmail) | (cd /usr/sbin; tar xf -) 
 
18
        (cd ${SENDMAILBACKUPDIR}; tar cf - newaliases) | (cd /usr/bin; tar xf -) 
 
19
        (cd ${SENDMAILBACKUPDIR}; tar cf - mailq) | (cd /usr/bin; tar xf -)
 
20
fi
 
21
 
 
22
# Activate sendmail in /etc/hostconfig
 
23
/usr/bin/perl -pi -e 's/MAILSERVER=-NO-/MAILSERVER=-YES-/g' /etc/hostconfig
 
24