2013-04-22 00:31:22 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2013-09-21 02:13:30 +00:00
|
|
|
set -e
|
|
|
|
|
2013-09-19 15:02:14 +00:00
|
|
|
rootfs=$1
|
2013-04-22 00:31:22 +00:00
|
|
|
|
|
|
|
echo "installing chef"
|
|
|
|
cat > $rootfs/tmp/install-chef.sh << EOF
|
|
|
|
#!/bin/sh
|
|
|
|
curl -L https://www.opscode.com/chef/install.sh -k | sudo bash
|
|
|
|
EOF
|
|
|
|
chmod +x $rootfs/tmp/install-chef.sh
|
|
|
|
chroot $rootfs /tmp/install-chef.sh
|
|
|
|
|
|
|
|
rm -rf $rootfs/tmp/*
|