Skip to content

Instantly share code, notes, and snippets.

@kaz29
Created October 28, 2011 06:10
Show Gist options
  • Save kaz29/1321735 to your computer and use it in GitHub Desktop.
Save kaz29/1321735 to your computer and use it in GitHub Desktop.
CakePHP2.0.0 setup on NiftyCloud CentOS5.6 plain startup script
#!/bin/sh
# CakePHP2.0 setup script
# Only for CentOS 5.6 64bit Plain
/bin/cat <<EOF >> /etc/rc.d/rc.local
curl https://raw.github.com/gist/1284739/2fbed6559815413523cda708d99eb18f9926428a/cakephp2_on_nifyucloud_centos5_6.sh | sh | tee /root/_setup.log
/bin/sed -i.orig -e "s/curl/#curl/g" /etc/rc.d/rc.local
/bin/sed -i.orig -e "s/\/bin\/sed/#\/bin\/sed/g" /etc/rc.d/rc.local
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment