Created
March 8, 2010 17:12
-
-
Save anotheremily/325364 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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