This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
%w(erb git net/ssh resolv chef chef/knife/cookbook_upload chef/cookbook_uploader chef/knife/node_run_list_add chef/knife/bootstrap net/ssh/multi chef/knife/core/bootstrap_context chef/knife/ssh mixlib/cli).each do |gem| | |
begin | |
require gem | |
rescue LoadError | |
raise "Could not load gem #{gem}, please install with sudo gem install #{gem}" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash -c ' | |
export PATH=/opt/csw/bin:/usr/sfw/bin:/usr/local/bin:/usr/sbin:/usr/bin | |
if [ ! -f /.profile ] ; then | |
echo "creating initial .profile" | |
echo -e "PATH=/opt/csw/bin:/usr/sfw/bin:/usr/local/bin:/usr/sbin:/usr/bin\nexport PATH" >> /.profile | |
fi | |
if [ ! -f /var/ld/ld.config ]; then |