Files
tripleo-image-elements/elements/neutron-openvswitch-agent/install.d/90-disable-upstart-network-interface-logging
Gonéri Le Bouder 25a962a6eb add some missing “set -ue” declarations
Since 79ab95b16e78d563c473b5acada62cb3e22d4eb1 dib-lint ensure
every element shell scripts have “set -e” activated.

Even if dib-lint doesn't test it yet, the set -u is already widely
used.

As pointed out by Jiri Stransky, elements/tripleo-cd/configs/* files
are sourced by deploy-testenv. There is no reason to enable “set -ue”
manually. The patch just disable the dib-lint “sete” check on these files.

Change-Id: I118c8c80ec50b265c22577b075d15f56389b7a47
2014-05-20 09:39:55 +02:00

10 lines
340 B
Bash
Executable File

#!/bin/bash
set -ue
# potentially thousands of network interfaces on the system, we don't
# want to overwhelm upstart with log pipes. This sends all of it to the
# system console.
if [ "$(dib-init-system)" = "upstart" ] && [ -e /etc/init/network-interface.conf ] ; then
echo "console output" >> /etc/init/network-interface.override
fi