From 67be75054917d4858984c69a509dd3c23d364d1e Mon Sep 17 00:00:00 2001 From: Giovanni Toraldo Date: Thu, 5 Dec 2024 10:13:29 +0100 Subject: [PATCH] Fixup base folder in apply_amps --- roles/repository/tasks/main.yml | 2 +- .../repository/templates/{apply_amps.sh => apply_amps.sh.j2} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename roles/repository/templates/{apply_amps.sh => apply_amps.sh.j2} (82%) diff --git a/roles/repository/tasks/main.yml b/roles/repository/tasks/main.yml index edccbb9e2..f9ed83519 100644 --- a/roles/repository/tasks/main.yml +++ b/roles/repository/tasks/main.yml @@ -211,7 +211,7 @@ ansible.builtin.template: owner: "{{ username }}" group: "{{ group_name }}" - src: apply_amps.sh + src: apply_amps.sh.j2 dest: "{{ content_folder }}" mode: "0755" 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