Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > by-pkgid > 30cd6f39b73959bef20a8af6aa121397 > scriptlet

imap-2001a-4mdk.i586.rpm

POSTIN

/bin/sh
# If no cert, migrate stunnel.pem, or generate a new cert
pushd /usr/lib/ssl/certs &> /dev/null || :
for CERT in imapsd.pem ipop3sd.pem ;do
   if [ ! -e $CERT ];then
      if [ -e stunnel.pem ];then
         cp stunnel.pem $CERT &> /dev/null || :
      elif [ -e Makefile.imap ];then
         make -f Makefile.imap $CERT << EOF &> /dev/null || :
--
SomeState
SomeCity
SomeOrganization
SomeOrganizationalUnit
localhost.localdomain
root@localhost.localdomain
EOF
      fi
   fi
done
popd &> /dev/null || :

[ -x /etc/init.d/xinetd ] && /etc/init.d/xinetd condrestart 2>/dev/null >/dev/null
exit 0

POSTUN

/bin/sh
[ -x /etc/init.d/xinetd ] && /etc/init.d/xinetd condrestart 2>/dev/null >/dev/null
exit 0