Skip to content

Instantly share code, notes, and snippets.

@anotheremily
Created March 8, 2010 17:12
Show Gist options
  • Save anotheremily/325364 to your computer and use it in GitHub Desktop.
Save anotheremily/325364 to your computer and use it in GitHub Desktop.
#!/bin/bash
# CouchDB install script
# For installing from SVN source
# Before running make sure CouchDB is not running
# Clean up old CouchDB files
find /usr/local -name \*couch* | xargs rm -rf
# Build
./bootstrap
./configure
make && make install
# Chown and Chmod to the couchdb user
chown -R couchdb:couchdb /usr/local/etc/couchdb
chown -R couchdb:couchdb /usr/local/var/lib/couchdb
chown -R couchdb:couchdb /usr/local/var/log/couchdb
chown -R couchdb:couchdb /usr/local/var/run/couchdb
chmod -R 0770 /usr/local/etc/couchdb
chmod -R 0770 /usr/local/var/lib/couchdb
chmod -R 0770 /usr/local/var/log/couchdb
chmod -R 0770 /usr/local/var/run/couchdb
# Move over config files
cp /usr/local/etc/init.d/couchdb /etc/init.d/couchdb
# I took this out as I prefer just to start by hand afterwards
# sudo -i -u couchdb couchdb -b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment