Ian,

Thank you for patch and report. We'll correct postinst script behavior.

Regards,
Marat

On Tuesday, August 2, 2016 at 12:46:05 AM UTC+3, [email protected] 
wrote:
>
> Hi,
>
> I get the following output when I'm installing scalarizr on Ubuntu 14.04
>
> ===
> Selecting previously unselected package scalarizr-ec2.
> Preparing to unpack .../scalarizr-ec2_4.9.5-1_amd64.deb ...
> Unpacking scalarizr-ec2 (4.9.5-1) ...
> Setting up scalarizr (4.9.5-1) ...
> /var/lib/dpkg/info/scalarizr.postinst: line 33: insserv: command not found
> /var/lib/dpkg/info/scalarizr.postinst: line 34: insserv: command not found
> /var/lib/dpkg/info/scalarizr.postinst: line 35: insserv: command not found
>  * Stopping Scalarizr scalarizr
> Thank you for installing scalarizr!
> Setting up scalarizr-ec2 (4.9.5-1) ...
> ===
>
> The messages about 'insserv' are issued, because we have our own message 
> in the '/etc/issue.net'
> and the script fails to detect that it is being run on Ubuntu.
>
> I guess it is better to check /etc/os-release or /etc/lsb-release for the 
> presence of 'Ubuntu' string.
> I was wondering if you could fix .deb with the following patch.
>
> diff -du postinst.orig postinst
> --- postinst.orig 2016-08-01 16:04:29.000000000 +0000
> +++ postinst 2016-08-01 21:19:43.786677729 +0000
> @@ -13,7 +13,7 @@
>  if test -e /etc/debian_version; then
>      FAMILY='debian'
>      DIST='debian'
> -    if grep 'Ubuntu' /etc/issue.net; then
> +    if grep 'Ubuntu' /etc/lsb-release; then
>          DIST='ubuntu'
>      fi
>  else
>
> ============
> Thank you in advance,
> Ian
>

-- 
You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to