Skip to content

Commit

Permalink
[fix] Keep CouchDB data in /data/couchdb
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Sep 6, 2013
1 parent 89dd46c commit 2b3415f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions database/couchdb/scripts/install.sh
Expand Up @@ -12,8 +12,9 @@ cd $HOME

groupadd couchdb
useradd -d /var/lib/couchdb -g couchdb couchdb
chown -R couchdb:couchdb /usr/local/var/{lib,log,run}/couchdb /usr/local/etc/couchdb
chmod 0770 /usr/local/var/{lib,log,run}/couchdb/
mkdir -p /data/couchdb
chown -R couchdb:couchdb /usr/local/var/{lib,log,run}/couchdb /usr/local/etc/couchdb /data/couchdb
chmod 0770 /usr/local/var/{lib,log,run}/couchdb/ /data/couchdb
chmod 664 /usr/local/etc/couchdb/*.ini
chmod 775 /usr/local/etc/couchdb/*.d

Expand Down
2 changes: 2 additions & 0 deletions database/couchdb/templates/local.ini
Expand Up @@ -6,6 +6,8 @@

[couchdb]
;max_document_size = 4294967296 ; bytes
database_dir = /data/couchdb
view_index_dir = /data/couchdb

[httpd]
port = {{ couchdb.port }}
Expand Down

0 comments on commit 2b3415f

Please sign in to comment.