Skip to content

Instantly share code, notes, and snippets.

@tejima
Created April 16, 2010 15:36
Show Gist options
  • Save tejima/368576 to your computer and use it in GitHub Desktop.
Save tejima/368576 to your computer and use it in GitHub Desktop.
abort if !system( 'rpm -ivh http://nog.dino.co.jp/dist/centos/5/dino/noarch/dino-release-1.0-1.noarch.rpm')
abort if !system( 'rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt')
abort if !system( 'wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm')
abort if !system( 'rpm -ivh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm')
abort if !system( 'yum -y install make')
abort if !system( 'yum -y install httpd httpd-devel php php-pear php-devel php-dom php-mbstring php-mysql php-gd')
abort if !system( 'yes yes | pecl install apc')
abort if !system( 'echo "extension=apc.so" > /etc/php.d/apc.ini')
abort if !system( 'yum -y install mysql mysql-server')
abort if !system( 'yum -y install git')
abort if !system( 'yum -y install postfix')
abort if !system( '/sbin/chkconfig httpd on')
abort if !system( '/sbin/chkconfig mysqld on')
abort if !system( '/sbin/chkconfig postfix on')
@tejima
Copy link
Author

tejima commented Apr 16, 2010

ruby スクリプトで、セットアップ用のプログラムをちょこっと。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment