Last active
August 29, 2015 14:14
-
-
Save toodooleedoo/ae9639f25db5e8d8f16b to your computer and use it in GitHub Desktop.
#AEM #CQ #CURL Rollout from a master from the command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CHILDPAGES1="/content/00" #add more paths if needed however will require multiple msm:masterPages | |
CHILDPAGES2="/content/01" | |
BLUEPRINT="/etc/blueprints/blueprintname" | |
ROLLOUTTITLE="00000" | |
ROLLOUTNAME="00000" | |
HOSTNAME="localhost" | |
USERPASS="admin:admin" | |
DESTPATH="/content/destpath" | |
curl -u "${USERPASS}" "http://${HOSTNAME}:4502/bin/wcmcommand" -d "cmd=createSite" -d "_charset_=utf-8" -d ":status=browser" -d "destPath=${DESTPATH}" -d "srcPath=${BLUEPRINGNAME}" -d "./jcr:title=${ROLLOUTTITLE}" -d "label=${ROLLOUTNAME}" -d "msm=masterPages@Delete:true" -d "msm:masterPages=${CHILDPAGES1}" -d "msm:masterPages=${CHILDPAGES2}" -w '%{http_code}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment