diff options
Diffstat (limited to 'mail/postfix-current/pkg-install')
-rw-r--r-- | mail/postfix-current/pkg-install | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/mail/postfix-current/pkg-install b/mail/postfix-current/pkg-install index 73fca798b090..71e11cbeeeaf 100644 --- a/mail/postfix-current/pkg-install +++ b/mail/postfix-current/pkg-install @@ -34,7 +34,7 @@ ask() { if [ x${answer} = x ]; then answer=${default} fi - /bin/echo ${answer} + echo ${answer} } yesno() { @@ -48,7 +48,7 @@ yesno() { [Yy]*) return 0;; [Nn]*) return 1;; esac - /bin/echo "Please answer yes or no." + echo "Please answer yes or no." done } @@ -61,50 +61,50 @@ if [ x"$2" = xPRE-INSTALL ]; then GID2=126 if /usr/sbin/pw groupshow "${GROUP}" 2>/dev/null; then - /bin/echo "You already have a group \"${GROUP}\", so I will use it." + echo "You already have a group \"${GROUP}\", so I will use it." else if /usr/sbin/pw groupadd ${GROUP} -g ${GID}; then - /bin/echo "Added group \"${GROUP}\"." + echo "Added group \"${GROUP}\"." else - /bin/echo "Adding group \"${GROUP}\" failed..." - /bin/echo "Please create it, and try again." + echo "Adding group \"${GROUP}\" failed..." + echo "Please create it, and try again." exit 1 fi fi if /usr/sbin/pw groupshow "${GROUP2}" 2>/dev/null; then - /bin/echo "You already have a group \"${GROUP2}\", so I will use it." + echo "You already have a group \"${GROUP2}\", so I will use it." else if /usr/sbin/pw groupadd ${GROUP2} -g ${GID2}; then - /bin/echo "Added group \"${GROUP2}\"." + echo "Added group \"${GROUP2}\"." else - /bin/echo "Adding group \"${GROUP2}\" failed..." - /bin/echo "Please create it, and try again." + echo "Adding group \"${GROUP2}\" failed..." + echo "Please create it, and try again." exit 1 fi fi if /usr/sbin/pw user show "${USER}" 2>/dev/null; then - /bin/echo "You already have a user \"${USER}\", so I will use it." + echo "You already have a user \"${USER}\", so I will use it." else if /usr/sbin/pw useradd ${USER} -u ${UID} -g ${GROUP} -h - -d /var/spool/postfix -s ${NOLOGIN} -c "Postfix Mail System"; then - /bin/echo "Added user \"${USER}\"." + echo "Added user \"${USER}\"." else - /bin/echo "Adding user \"${USER}\" failed..." - /bin/echo "Please create it, and try again." + echo "Adding user \"${USER}\" failed..." + echo "Please create it, and try again." exit 1 fi fi if /usr/sbin/pw show group mail | grep -q "${USER}" 2>/dev/null; then - /bin/echo "You already have user \"${USER}\" in group \"mail\", so I will use it." + echo "You already have user \"${USER}\" in group \"mail\", so I will use it." else - /bin/echo "You need user \"${USER}\" added to group \"mail\"." + echo "You need user \"${USER}\" added to group \"mail\"." if yesno "Would you like me to add it" y; then /usr/sbin/pw groupmod mail -m ${USER} || exit - /bin/echo "Done." + echo "Done." else - /bin/echo "Please create it, and try again." + echo "Please create it, and try again." exit 1 fi fi @@ -160,21 +160,21 @@ if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then if [ ${OSVERSION} -ge 400014 ]; then if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" ${DEFAULT_REPLACE_MAILERCONF}; then /bin/mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old - /bin/echo "#" > /etc/mail/mailer.conf - /bin/echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf - /bin/echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf - /bin/echo "#" >> /etc/mail/mailer.conf - /bin/echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf - /bin/echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf - /bin/echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf - /bin/echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf + echo "#" > /etc/mail/mailer.conf + echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf + echo ", named ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf + echo "#" >> /etc/mail/mailer.conf + echo "sendmail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf + echo "send-mail ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf + echo "mailq ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf + echo "newaliases ${PKG_PREFIX}/sbin/sendmail" >> /etc/mail/mailer.conf fi else if yesno "Would you like to replace {sendmail,mailq,newaliases} with Postfix versions" n; then replace /usr/sbin/sendmail ${PKG_PREFIX}/sbin/sendmail replace /usr/bin/mailq ${PKG_PREFIX}/sbin/sendmail replace /usr/bin/newaliases ${PKG_PREFIX}/sbin/sendmail - /bin/echo "Done." + echo "Done." fi fi fi |