summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Ptacek <m.ptacek@partner.samsung.com>2019-04-09 14:05:02 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-09 14:05:02 +0000
commit2aff0c9b98e318977d0b3c675ba286c8153911e3 (patch)
tree20e0c30e9b89502b9068684fbba8fcab4945de12
parent4765fc373747ef23c329ed0507c4a2662f40556b (diff)
parent504adc1446de664fc342560444554a84068e6818 (diff)
Merge "Fix patching registry in NPM"
-rwxr-xr-xbuild/build_nexus_blob.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/build/build_nexus_blob.sh b/build/build_nexus_blob.sh
index e3651fb1..dc4b1dd3 100755
--- a/build/build_nexus_blob.sh
+++ b/build/build_nexus_blob.sh
@@ -266,8 +266,7 @@ EOF
pushd ${NXS_SRC_NPM_DIR}
tar xvzf tsscmp-1.0.5.tgz
rm -f tsscmp-1.0.5.tgz
-sed -i "s|https://registry.npmjs.org|http://${NEXUS_DOMAIN}:8081|g" package/package.json
-sed -i "s|https://nexus.onap-me.novalocal|http://${NEXUS_DOMAIN}:8081|g" package/package.json
+sed -i 's|\"registry\":\ \".*\"|\"registry\":\ \"'"${NPM_REGISTRY}"'\"|g' package/package.json
tar -zcvf tsscmp-1.0.5.tgz package
rm -rf package