Package uw-imap: Скрипты

Post install

# If no cert, migrate stunnel.pem, or generate a new cert
pushd /var/lib/ssl/certs &> /dev/null || :

ANCESTOR=stunnel.pem
for CERT in imapd.pem ipop3d.pem; do
   if [ ! -e "$CERT" ]; then
      if [ -e "$ANCESTOR" ]; then
         echo -n "uw-imap: Installing your $ANCESTOR certificate as $CERT "
         install -p -m0600 "$ANCESTOR" "$CERT" \
          && echo "succeeded." || echo "failed."
      elif [ -e make-dummy-cert ]; then
         echo "uw-imap: Generating new certificate for $CERT."
        sh -s "$CERT" < make-dummy-cert
      else
        echo "uw-imap: Remember to read docs and make $(pwd)/$CERT!" >&2
      fi
   fi
done || :

popd &> /dev/null || :

/sbin/service xinetd condreload || :
Post uninstall

1
2
3
4
5
6
if [ $1 = 0 ]; then
	/sbin/service xinetd condreload || :
fi

#%files -n libuw-imap
#/usr/lib/*.so.*