summaryrefslogtreecommitdiff
path: root/couchdb-scripts-defaults.conf
blob: c0dfd2d84719374a582c06bdbd11f4c174e1973d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
NETRC_FILE='/etc/couchdb/couchdb.netrc'
OPTS="--netrc-file $NETRC_FILE -HContent-Type:application/json -s"
CURL="curl $OPTS "
URL='http://127.0.0.1:5984'
BACKEND_URL='http://127.0.0.1:5986'
DUMPDIR='/var/backups/couchdb'
TMPPREFIX='tmp'

user=`cat /etc/couchdb/couchdb.netrc | cut -d ' ' -f 4`
pw=`cat /etc/couchdb/couchdb.netrc | cut -d ' ' -f 6`
auth_url="http://${user}:${pw}@127.0.0.1:5984"