Skip to content

Instantly share code, notes, and snippets.

@knennigtri
Created September 6, 2019 13:00
Show Gist options
  • Save knennigtri/ad72795cda129c33277cb444d0b1516e to your computer and use it in GitHub Desktop.
Save knennigtri/ad72795cda129c33277cb444d0b1516e to your computer and use it in GitHub Desktop.
content package install script using AEM package manager
#!/bin/bash
dir="internal"
for file in `find $dir -type f`
do
filename=`basename $file`;
echo $file
curl -u admin:admin -F package=@$file http://localhost:4502/crx/packmgr/service/.json/?cmd=upload
done
dir="external"
for file in `find $dir -type f`
do
filename=`basename $file`;
echo $file
curl -u admin:admin -F package=@$file http://localhost:4502/crx/packmgr/service/.json/?cmd=upload
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment