Skip to content

Commit

Permalink
Replace the string NEXUS_USERNAME with its content in the provisionin…
Browse files Browse the repository at this point in the history
…g script
  • Loading branch information
Fgerthoffert committed Sep 26, 2024
1 parent 1ea0660 commit 91a6f73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions env.provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ else
curl ${MANIFEST} --output ./run-artifacts/curl-manifest
MANIFEST="curl-manifest"
fi
sed -i -e "s/NEXUS_USERNAME/$(echo ${NEXUS_USERNAME} | sed -e 's/\\/\\\\/g; s/\//\\\//g; s/&/\\\&/g')/g" ./run-artifacts/${MANIFEST}
sed -i -e "s/NEXUS_PASSWORD/$(echo ${NEXUS_PASSWORD} | sed -e 's/\\/\\\\/g; s/\//\\\//g; s/&/\\\&/g')/g" ./run-artifacts/${MANIFEST}

echo "$(date +'%d %B %Y - %k:%M') == Executing manifest: ${MANIFEST} =="
curl -u root:${SUPER_USER_PASSWORD} -X POST ${JAHIA_URL}/modules/api/provisioning --form script="@./run-artifacts/${MANIFEST};type=text/yaml" $(find assets -type f | sed -E 's/^(.+)$/--form file=\"@\1\"/' | xargs)
Expand Down

0 comments on commit 91a6f73

Please sign in to comment.