Skip to content

Instantly share code, notes, and snippets.

@yuyalush
Forked from kaz29/startup.sh
Created October 29, 2011 10:50
Show Gist options
  • Save yuyalush/1324330 to your computer and use it in GitHub Desktop.
Save yuyalush/1324330 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