Uninstall postgresql95-server - postun server script failure

From: Marian Krucina <marian(dot)krucina(at)gmail(dot)com>
To: pgsql-pkg-yum(at)postgresql(dot)org
Subject: Uninstall postgresql95-server - postun server script failure
Date: 2016-01-22 17:49:30
Message-ID: CAP-0x-qdn-DJUyJGHajztquTGqJWrLJ7kdrgnhNqbvhah1kTEQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-yum

Hello,

command yum remove postgresql95-server on centos 6 (without systemd) print
this error:

Running Transaction
Erasing :
postgresql95-server-9.5.0-2PGDG.rhel6.x86_64
1/3
Non-fatal POSTUN scriptlet failure in rpm package
postgresql95-server-9.5.0-2PGDG.rhel6.x86_64
Erasing :
postgresql95-9.5.0-2PGDG.rhel6.x86_64
2/3
/var/tmp/rpm-tmp.hE3kSH: line 4: syntax error near unexpected token `fi'
/var/tmp/rpm-tmp.hE3kSH: line 4: `fi'
warning: %postun(postgresql95-server-9.5.0-2PGDG.rhel6.x86_64) scriptlet
failed, exit status 2
Erasing :
postgresql95-libs-9.5.0-2PGDG.rhel6.x86_64
3/3

Code:

if [ $1 -ge 1 ] ; then
%if %{systemd_enabled}
....
%endif
fi

Generate:

if [ $1 -ge 1 ] ; then
fi

And it fail.

Regards,
marian

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message John Harvey 2016-01-27 20:27:40 Quick question about autogen.sh
Previous Message Devrim GÜNDÜZ 2016-01-22 12:25:21 Re: pgRouting 2.1 why not available on PostgreSQL 9.5?