couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject [couchdb-docker] 08/39: 1.6: allow admin user/password special chars (#60) (#61)
Date Tue, 25 Apr 2017 12:38:20 GMT
This is an automated email from the ASF dual-hosted git repository.

garren pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-docker.git

commit 557f3c87c82fc87f360a09200ee567766cfb819e
Author: Alexander Harding <aeharding@gmail.com>
AuthorDate: Wed Jul 20 09:36:55 2016 -0500

    1.6: allow admin user/password special chars (#60) (#61)
    
    Using the % symbol is reserved in the printf format string
---
 1.6.1/docker-entrypoint.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/1.6.1/docker-entrypoint.sh b/1.6.1/docker-entrypoint.sh
index 180d075..d18a33a 100755
--- a/1.6.1/docker-entrypoint.sh
+++ b/1.6.1/docker-entrypoint.sh
@@ -32,7 +32,7 @@ if [ "$1" = 'couchdb' ]; then
 
 	if [ "$COUCHDB_USER" ] && [ "$COUCHDB_PASSWORD" ]; then
 		# Create admin
-		printf "[admins]\n$COUCHDB_USER = $COUCHDB_PASSWORD\n" > /usr/local/etc/couchdb/local.d/docker.ini
+		printf "[admins]\n%s = %s\n" "$COUCHDB_USER" "$COUCHDB_PASSWORD" > /usr/local/etc/couchdb/local.d/docker.ini
 		chown couchdb:couchdb /usr/local/etc/couchdb/local.d/docker.ini
 	fi
 

-- 
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <commits@couchdb.apache.org>.

Mime
View raw message