add automation target directories to cache, download installer to target instead of rm-automation root

This commit is contained in:
Claudia Agache
2020-07-06 19:32:32 +03:00
parent 32c9303c4f
commit e98b34f68d
4 changed files with 19 additions and 13 deletions

View File

@@ -147,12 +147,12 @@
<target>
<echo>Recreating database...</echo>
<sql driver="org.postgresql.Driver" url="jdbc:postgresql:template1" userid="alfresco" password="alfresco" autocommit="true">drop database if exists alfresco; create database alfresco</sql>
<chmod file="alf-installer.bin" perm="a+x" verbose="true" />
<chmod file="target/alf-installer.bin" perm="a+x" verbose="true" />
<echo>Installing Alfresco...</echo>
<exec executable="${basedir}/alf-installer.bin" dir="${basedir}" failonerror="true">
<exec executable="${basedir}/target/alf-installer.bin" dir="target" failonerror="true">
<arg line="--mode unattended --alfresco_admin_password admin --disable-components postgres,alfrescowcmqs --jdbc_username alfresco --jdbc_password alfresco --prefix ${basedir}/target/alf-installation" />
</exec>
<delete file="${basedir}/alf-installer.bin" verbose="true" />
<delete file="target/alf-installer.bin" verbose="true" />
</target>
</configuration>
</execution>