Closed nkev closed 1 year ago
In case it helps others, I modified the original For CouchDB 3.1+ script in the Readme to work on Macs:
For CouchDB 3.1+
params="-H Content-Type:application/json"; \ couch="http://USER:PASSWORD@127.0.0.1:5984"; \ curl $params -X PUT $couch/photon; curl https://raw.githubusercontent.com/ermouth/couch-photon/master/photon.json | \ curl $params -X PUT $couch/photon/_design/photon -d @- ; curl $params -X PUT $couch/photon/_security -d '{}' ; \ curl $params -X PUT $couch/_node/_local/_config/csp/attachments_enable -d '"false"' ; \ curl $params -X PUT $couch/_node/_local/_config/chttpd_auth/same_site -d '"lax"' ; \ couch=''; params='';
How is it different from the README snippet? Looks like your code does exactly same.
Combining $params and $couch does not work on a Mac (zsh).
In case it helps others, I modified the original
For CouchDB 3.1+
script in the Readme to work on Macs: