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
This commit is contained in:
Lucas Alvares Gomes 2013-06-12 10:47:34 +01:00
parent 03b437db0e
commit f17e169f69

View File

@ -0,0 +1,3 @@
#!/bin/bash
sed -i '/secure_path/ s/$/:\/usr\/local\/bin/' /etc/sudoers