diff --git a/roles/repository/tasks/main.yml b/roles/repository/tasks/main.yml index edccbb9e2..3df2e3821 100644 --- a/roles/repository/tasks/main.yml +++ b/roles/repository/tasks/main.yml @@ -211,8 +211,8 @@ ansible.builtin.template: owner: "{{ username }}" group: "{{ group_name }}" - src: apply_amps.sh - dest: "{{ content_folder }}" + src: apply_amps.sh.j2 + dest: "{{ content_folder }}/apply_amps.sh" mode: "0755" - name: Install ACS data files to Linux FHS destinations diff --git a/roles/repository/templates/apply_amps.sh b/roles/repository/templates/apply_amps.sh.j2 similarity index 82% rename from roles/repository/templates/apply_amps.sh rename to roles/repository/templates/apply_amps.sh.j2 index 37cb48339..0f5de2a59 100644 --- a/roles/repository/templates/apply_amps.sh +++ b/roles/repository/templates/apply_amps.sh.j2 @@ -2,12 +2,12 @@ . {{ config_folder }}/setenv.sh echo "Installing Content Services Platform AMPs ..." -sudo ${JAVA_HOME}/bin/java -jar ${ACS_HOME}/bin/alfresco-mmt.jar install {{ binaries_folder }}/modules/acs-platform ${ACS_HOME}/web-server/webapps/alfresco.war -directory $* +sudo ${JAVA_HOME}/bin/java -jar ${ACS_HOME}/bin/alfresco-mmt.jar install {{ content_folder }}/modules/acs-platform ${ACS_HOME}/web-server/webapps/alfresco.war -directory $* sudo ${JAVA_HOME}/bin/java -jar ${ACS_HOME}/bin/alfresco-mmt.jar install ${ACS_HOME}/amps_repo ${ACS_HOME}/web-server/webapps/alfresco.war -directory -nobackup $* sudo ${JAVA_HOME}/bin/java -jar ${ACS_HOME}/bin/alfresco-mmt.jar list ${ACS_HOME}/web-server/webapps/alfresco.war echo "Installing Content Services Share AMPs ..." -sudo ${JAVA_HOME}/bin/java -jar ${ACS_HOME}/bin/alfresco-mmt.jar install {{ binaries_folder }}/modules/acs-share ${ACS_HOME}/web-server/webapps/share.war -directory $* +sudo ${JAVA_HOME}/bin/java -jar ${ACS_HOME}/bin/alfresco-mmt.jar install {{ content_folder }}/modules/acs-share ${ACS_HOME}/web-server/webapps/share.war -directory $* if [ -d ${ACS_HOME}/amps_share ]; then sudo ${JAVA_HOME}/bin/java -jar ${ACS_HOME}/bin/alfresco-mmt.jar install ${ACS_HOME}/amps_share ${ACS_HOME}/web-server/webapps/share.war -directory -nobackup $* fi