Bug 6214

Summary: Ошибки в postin и perun скриптах пакета postfix-tls-2.1.5-alt1
Product: Sisyphus Reporter: Sergei Epiphanov <serpiph>
Component: postfixAssignee: Gleb F-Malinovskiy <glebfm>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P2 CC: glebfm, lakostis, ldv, ns
Version: unstable   
Hardware: all   
OS: Linux   

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