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

15 lines
297 B
Text
Raw Permalink Normal View History

2013-04-22 00:31:22 +00:00
#!/bin/bash
cache=`readlink -f .`
rootfs="${cache}/rootfs"
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/*