Expand my Community achievements bar.

curl deployment with environment variable or path


Level 1


I am struggling with this but is there a way to deploy to aem server using either a folder or with environment variable or wild card? Ideally it would be great if I define the path=somefolder. This way anything in that folder can be deployed.

This works if I define the application in -F file=@"myapp.zip"

curl -v -u user1:user1 --fail  -F file=@"myapp.zip" -F force=true -F install=true 'http://localhost/crx/packmgr/service.jsp'

This does not work and there is no error but when I echo $MYPP I can see the file name.

curl -v -u user1:user1 --fail  -F file=@"$MYAPP" -F force=true -F install=true 'http://localhost/crx/packmgr/service.jsp'

This does not work as well.

curl -v -u user1:user1 --fail  -F path="$MYAPP" -F force=true -F install=true 'http://localhost/crx/packmgr/service.jsp'

This would be ideal as well but do not think there is any support for curl with wild cards ?

curl -v -u user1:user1 --fail  -F file=@"*.zip" -F force=true -F install=true 'http://localhost/crx/packmgr/service.jsp'


0 Replies
page footer