From b9e735c8642eb93bffb34015f5c39f8a9c5448e2 Mon Sep 17 00:00:00 2001 From: casjay Date: Wed, 23 Aug 2023 20:10:41 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../../couchdb/scripts/commands.sh --- applications/couchdb/scripts/commands.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/applications/couchdb/scripts/commands.sh b/applications/couchdb/scripts/commands.sh index f440aea..31ea290 100644 --- a/applications/couchdb/scripts/commands.sh +++ b/applications/couchdb/scripts/commands.sh @@ -1,7 +1,5 @@ __curl() { curl -q -LSsf --user "$root_user_name:$root_user_pass" "$@"; } -# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - __curl_users() { __curl -X PUT -H 'Accept: application/json' -H 'Content-Type: application/json' 'http://'$COUCHDB_SERVER':'$SERVICE_PORT'/_users/org.couchdb.user:'$1'' -d "{\"name\": \"$1\", \"password\": \"$2\", \"roles\": [], \"type\": \"user\"}" || return 2; } -# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - __curl_database() { curl -q -LSsf -X PUT 'http://'$root_user_name:$root_user_pass'@'$COUCHDB_SERVER':'$SERVICE_PORT'/'$1'' || return 2; } SERVICE_PORT="5984"