Bug 6214 - Ошибки в postin и perun скриптах пакета postfix-tls-2.1.5-alt1
Summary: Ошибки в postin и perun скриптах пакета postfix-tls-2.1.5-alt1
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: postfix (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: Gleb F-Malinovskiy
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-04 16:57 MSK by Sergei Epiphanov
Modified: 2005-07-13 15:47 MSD (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Epiphanov 2005-03-04 16:57:34 MSK
postinstall scriptlet (through /bin/sh):
for n in lmtp smtp smtpd; do
      ln -s -nf "$n"-tls /usr/lib/postfix/"$n"
done
/usr/bin/subst -p 's/^#\(.*tlsmgr\)/\1' /etc/postfix/postfix-files
/etc/postfix/post-install upgrade-package

Пропущен символ в строке /usr/bin/subst... Должно быть:

/usr/bin/subst -p 's/^#\(.*tlsmgr\)/\1/' /etc/postfix/postfix-files

Из-за ошибки не правится файл /etc/postfix/postfix-files

preuninstall scriptlet (through /bin/sh):
if [ $1 = 0 ]; then
        for n in lmtp smtp smtpd; do
              ln -s -nf "$n"-std /usr/lib/postfix/"$n"
        done

Отсутсвует завершение условия. Должно быть:

if [ $1 = 0 ]; then
        for n in lmtp smtp smtpd; do
              ln -s -nf "$n"-std /usr/lib/postfix/"$n"
        done
fi

Из-за ошибки не удаляется пакет postfix-tls.




Steps to Reproduce:
1.Сборка postfix с tls
2.Установка postfix-tls
3.Удаление postfix-tls
Actual Results:  
Ошибки при установке и удалении пакета

Expected Results:  
Нормальная установка и удаление пакета.
Comment 1 Dmitry V. Levin 2005-03-10 14:36:18 MSK
Спасибо, исправлено в 2.1.5-alt2