Open okor opened 12 years ago
Can recipes be options? I think so.
:: install redis :: apt-get install build-essential cd /opt/ mkdir /opt/redis wget http://redis.googlecode.com/files/redis-2.4.13.tar.gz tar -zxvf /opt/redis-2.4.13.tar.gz cd /opt/redis-2.4.13/ make cp /opt/redis-2.4.13/redis.conf /opt/redis/redis.conf.default cp /opt/redis-2.4.13/src/redis-benchmark /opt/redis/ cp /opt/redis-2.4.13/src/redis-cli /opt/redis/ cp /opt/redis-2.4.13/src/redis-server /opt/redis/ cp /opt/redis-2.4.13/src/redis-check-aof /opt/redis/ cp /opt/redis-2.4.13/src/redis-check-dump /opt/redis/ cp /opt/redis/redis.conf.default /opt/redis/redis.conf :: redis.conf :: daemonize yes pidfile /var/run/redis.pid logfile /var/log/redis.log port 6379 bind 127.0.0.1 timeout 300 loglevel notice ## Default configuration options databases 16 save 900 1 save 300 10 save 60 10000 rdbcompression yes dbfilename dump.rdb dir /opt/redis/ appendonly no glueoutputbuf yes :: init :: cd /opt/ wget -O init-deb.sh http://library.linode.com/assets/629-redis-init-deb.sh adduser --system --no-create-home --disabled-login --disabled-password --group redis mv /opt/init-deb.sh /etc/init.d/redis chmod +x /etc/init.d/redis chown -R redis:redis /opt/redis touch /var/log/redis.log chown redis:redis /var/log/redis.log update-rc.d -f redis defaults
Also
apt-get install tcl8.5 make test
Can recipes be options? I think so.