Upgrade the Chaincode form Org1 CLI

If ORDERER_CA and CHANNEL_NAME variables are not exported, export them first:

export ORDERER_CA=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem && export CHANNEL_NAME=mychannel

Then upgrade chaincode:

peer chaincode upgrade -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA -C $CHANNEL_NAME -n user-chaincode -v 3.0 -c '{"Args":[""]}' -P "OR ('Org1MSP.peer','Org2MSP.peer','Org3MSP.peer', 'Org4.peer')"