Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmed-musallam/07fbf430168d4ac57bd8c89d8be9bca5 to your computer and use it in GitHub Desktop.
Save ahmed-musallam/07fbf430168d4ac57bd8c89d8be9bca5 to your computer and use it in GitHub Desktop.
A script to install all packages in a folder to the AEM instance at 4502
#!/bin/bash
# this script will install ALL zip packages in current directory the AEM instance at 4502
for f in *.zip
do
echo "installing: $f"
curl -u admin:admin -F file=@"$f" -F name="$f" -F force=true -F install=true http://localhost:4502/crx/packmgr/service.jsp
echo "done."
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment