vagrant-lxc-ng/boxes/common/install-chef

16 lines
268 B
Text
Raw Permalink Normal View History

2013-04-22 00:31:22 +00:00
#!/bin/bash
set -e
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/*