diskimage-builder/elements/fedora/pre-install.d/00-usr-local-bin-secure-path
Lucas Alvares Gomes f17e169f69 Add /usr/local/bin to the secure_path variable.
This patch will append /usr/local/bin to the sudoers secure_path variable,
by doing so commands prefixed with sudo will then find some binaries
delivered by other elements in that path (e.g nova-rootwrap).

Change-Id: I1ebad8b1932620559a3d90aa39298f9b12e636fd
2013-06-12 11:01:01 +01:00

4 lines
73 B
Bash
Executable File

#!/bin/bash
sed -i '/secure_path/ s/$/:\/usr\/local\/bin/' /etc/sudoers