[Pkg-nagios-devel] Bug#772333: icinga2-common: bashism in /bin/sh script

Raphael Geissert atomo64 at gmail.com
Sat Dec 6 12:57:14 UTC 2014

Package: icinga2-common
Severity: minor
Version: 2.1.1-1
User: debian-release at lists.debian.org
Usertags: goal-dash


I've ran checkbashisms (from the 'devscripts' package) over the whole
archive and I found that your package has a /bin/sh script that uses a

checkbashisms' output:
> possible bashism in ./usr/bin/icinga2-build-ca line 23 (echo -e):
> KEY_DIR=$ICINGA_CA openssl req -config $ICINGA2PKIDIR/openssl-quiet.cnf
> -new -newkey rsa:4096 -x509 -days 3650 -keyform PEM -keyout
> $ICINGA_CA/ca.key -outform PEM -out $ICINGA_CA/ca.crt && \
>	  chmod 600 $ICINGA_CA/ca.key && \
>	  echo -e "\n\tIf you want to change the default settings for server
> certificates check out \"$ICINGA_CA/vars\".\n"

Not using bash (or a Debian Policy compliant shell interpreter that doesn't
provide such an extra feature) as /bin/sh is likely to lead to errors or
unexpected behaviours. Please be aware that dash is the default /bin/sh.

Please closely examine the above output and the script, and determine
what the proper severity of the bug is, and adjust it accordingly. If
it's important or greater please hurry to get this fixed for jessie.

Hints about how to fix bashisms can be found at:

Thanks in advance,
Raphael Geissert

More information about the Pkg-nagios-devel mailing list