Ticket #109 (new defect)

Opened 10 months ago

Last modified 10 months ago

Error in postinst script for ''ezweb-platform-common''

Reported by: apoloval Assigned to: apoloval
Priority: major Milestone: Software packaging
Component: Package system Version:
Keywords: Cc: jlopez@pegaso.ls.fi.upm.es

Description (Last modified by apoloval)

While installing ezweb-platform-sqlite3 an error is produced,

Configurando ezweb-platform-common (0.1~svn896) ...
sed: -e expresión #1, carácter 33: opción desconocida para `s'

After this Apache is restarted and /etc/apache2/sites-available/ezweb-platform is empty.

This bug is reported by Javier López Pardo.

Change History

02/18/08 15:31:52 changed by apoloval

  • description changed.
  • summary changed from Error in postinst script for ''ezweb-platform-sqlite'' to Error in postinst script for ''ezweb-platform-common''.

The failing package is not ezweb-platform-sqlite3 but ezweb-platform-common.

(follow-up: ↓ 4 ) 02/18/08 15:41:53 changed by apoloval

  • cc set to jlopez@pegaso.ls.fi.upm.es.

After some workaround, I don't see anything buggy in post-install script. Even more, it has been used widely and no error was detected before.

Maybe you are using a non-bash shell which fails. The exact sed command is

 
cat $vh_file | sed s/ServerName.*/"ServerName $hostname"/g > $vh_tmp
 

Maybe the substitution braces ${hostname} are needed instead of $hostname.

Could you give me some information of your system (Debian version and such stuff)?

02/18/08 16:03:16 changed by apoloval

To avoid last problem, scripts are forced to be executed by bash instead of sh. Commited at r899.

(in reply to: ↑ 2 ) 02/18/08 16:16:48 changed by jlopez

I am using an Ubuntu 7.10 (64 bits) and bash shell (GNU bash, version 3.2.25(1)-release-(x86_64-pc-linux-gnu))

Replying to apoloval:

After some workaround, I don't see anything buggy in post-install script. Even more, it has been used widely and no error was detected before. Maybe you are using a non-bash shell which fails. The exact sed command is {{{ cat $vh_file | sed s/ServerName.*/"ServerName? $hostname"/g > $vh_tmp }}} Maybe the substitution braces ${hostname} are needed instead of $hostname. Could you give me some information of your system (Debian version and such stuff)?

02/18/08 16:22:14 changed by apoloval

I just uploaded the new packages with bash forced. Please, try again...