Skip to content

Instantly share code, notes, and snippets.

@ani03sha
Created September 25, 2019 14:46
Show Gist options
  • Save ani03sha/314cd178908de80d767b06d20d4373aa to your computer and use it in GitHub Desktop.
Save ani03sha/314cd178908de80d767b06d20d4373aa to your computer and use it in GitHub Desktop.
Create FDS in AEM using path from system variable - datastore_home
#!/bin/bash
java -jar C:/Users/Admin/Desktop/Shell-Testing/aem-author-p4502.jar -unpack
mkdir crx-quickstart/install
touch crx-quickstart/install/org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore.config
echo "repository.home=${datastore_home}" > "crx-quickstart/install/org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore.config"
echo "path=${datastore_home}" >> "crx-quickstart/install/org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore.config"
echo "minRecordLength=\"16384\"" >> "crx-quickstart/install/org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore.config"
java -agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n -jar aem-author-p4502.jar -r author -gui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment