instack-undercloud/elements/undercloud-install/pre-install.d/01-usr-local-bin-secure-path
James Slagle be7cb52d33 Clean up json file
Now that Puppet is driving a large portion of the Undercloud installation, we
can clean up some previously used elements from the json-files.

We do have to provide some additional bits via the undercloud-install element,
such as simple dib-init-system script. This is much simpler than continuing to
use large elements from tripleo-image-elements that have other unintended
side-effects that we want to avoid.

Change-Id: I0c3626e3b4a2de3d7f1e1bc3274be4150b552a26
2015-03-17 16:15:55 -04:00

11 lines
154 B
Bash
Executable File

#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
sed -i '/secure_path/ s/$/:\/usr\/local\/bin/' /etc/sudoers