Package: phpmyadmin
Severity: important

Upgrading from 3:2.6.1-pl2-1 to 3:2.6.1-pl3-1 the following error
occurred:

Replacing config file /etc/phpmyadmin/htaccess with new version
/var/lib/dpkg/info/phpmyadmin.postinst: line 112: [: argument expected


I had a quick look at the postinst script - probably the error is a "-a"
too many at the end of line 113.


Additionally, "test -a" is not POSIX compliant. Instead each test should
be done individually, tied together with "&&".


Example rewrite of line 112 - before:

if [ ! -f /etc/$webserver/mods-enabled/cgi.load -a ! -h 
/etc/$webserver/mods-enabled/cgi.load -a \

after:

if [ ! -f /etc/$webserver/mods-enabled/cgi.load ] && [ ! -h 
/etc/$webserver/mods-enabled/cgi.load ] && \



 - Jonas

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.11-rc4-bk8
Locale: LANG=da_DK, LC_CTYPE=da_DK (charmap=ISO-8859-1)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to