Skip to content

Instantly share code, notes, and snippets.

@kaz29
kaz29 / startup.sh
Created October 28, 2011 06:10
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