This website requires JavaScript.
Explore
Help
Register
Sign In
sig_cloud
/
diskimage-builder
Watch
2
Star
0
Fork
0
You've already forked diskimage-builder
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
71fafff215
diskimage-builder
/
elements
/
rpm-distro
/
pre-install.d
/
00-usr-local-bin-secure-path
7 lines
98 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Extracting common functionality for rpm based distros Rather than dublicating code to implement rhel or any other derivitive, this patch introduces an rpm-distro element that should be used as a dependency. Change-Id: I8a92bb041764d03f430b438f0013704f79a8674c
2013-08-20 20:02:57 +00:00
#!/bin/bash
set -e all the things Using set -e in all of our scripts will prevent some subtle bugs from slipping in, and will allow us to enforce use of set -e with tooling. This change also adds -u and set -o pipefail in the less complex scripts where it is unlikely to cause problems. A follow-up change will enable those options in the complex scripts so that if it breaks something it can be reverted easily. Change-Id: I0ad358ccb98da7277a0ee2e9ce8fda98438675eb
2014-03-29 03:28:22 +00:00
set -eu
set -o pipefail
Extracting common functionality for rpm based distros Rather than dublicating code to implement rhel or any other derivitive, this patch introduces an rpm-distro element that should be used as a dependency. Change-Id: I8a92bb041764d03f430b438f0013704f79a8674c
2013-08-20 20:02:57 +00:00
sed -i '/secure_path/ s/$/:\/usr\/local\/bin/' /etc/sudoers
Reference in New Issue
Copy Permalink