Scripts Execution | Community
Skip to main content
pavan_kumar_k
Level 2
October 16, 2015
Solved

Scripts Execution

  • October 16, 2015
  • 2 replies
  • 900 views

One of my client requirment is as follow's

  1. Start with a fresh Amazon Unix AMI
  2. execute a script that will Download the CQ JARs from S3 or any storage space, Install CQ
  3. Install the Configuration Package (Clean Up package, Content Package for the UI pages, Permissions Package, etc)
  4. If we can, even update the admin password as part of the script.

Can any  one help out like how to write those scripts (3rd point ) and how to execute those scripts automatically. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ove_Lindström

As Sham states in his reply, all the uploading, installation and replication can be done using the cURL commands.

Another way is to use a Continuous Integration environment, such as Jenkins or TeamCity, and have a Maven action that uses the content-package plugin (http://dev.day.com/docs/en/cq/current/core/how_to/how_to_use_the_vlttool/vlt-mavenplugin.html) to do the same as you can do with the cURL command. The benefit of that is that if you have a common repository that you release your application to, you can easily just point to the corresponding artifact using the Maven "coordinate system".

If you install Maven in the target environment, you can even do it using "localhost:<port>" as target.

2 replies

Sham_HC
Level 10
October 16, 2015

use curl command & more details at

http://dev.day.com/docs/en/crx/current/how_to/package_manager.html#Managing Packages on the Command Line

Ove_LindströmAccepted solution
Level 6
October 16, 2015

As Sham states in his reply, all the uploading, installation and replication can be done using the cURL commands.

Another way is to use a Continuous Integration environment, such as Jenkins or TeamCity, and have a Maven action that uses the content-package plugin (http://dev.day.com/docs/en/cq/current/core/how_to/how_to_use_the_vlttool/vlt-mavenplugin.html) to do the same as you can do with the cURL command. The benefit of that is that if you have a common repository that you release your application to, you can easily just point to the corresponding artifact using the Maven "coordinate system".

If you install Maven in the target environment, you can even do it using "localhost:<port>" as target.