Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Update build.xml to copy members.xml onto web servers
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys Smith committed Dec 2, 2016
1 parent 0e635f4 commit 070071d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,10 @@
-->
<property name="www.user" value="wwwscp"/>
<property name="www.hostname" value="web1.infr.ukfederation.org.uk"/>
<property name="www.path" value="/var/www/html/fed"/>
<property name="www.url" value="${www.user}@${www.hostname}:${www.path}"/>
<property name="www.path.stats" value="/var/www/html/fed"/>
<property name="www.path.members" value="/var/www/externals"/>
<property name="www.url.stats" value="${www.user}@${www.hostname}:${www.path.stats}"/>
<property name="www.url.members" value="${www.user}@${www.hostname}:${www.path.members}"/>

<!--
Repo properties.
Expand Down Expand Up @@ -2092,11 +2094,16 @@
<then>
<echo>Pushing UK Federation other files to web site.</echo>
<echo>-> Web1</echo>
<scp failonerror="true" remoteTodir="${www.url}" keyfile="~/.ssh/id_rsa" knownhosts="~/.ssh/known_hosts">
<scp failonerror="true" remoteTodir="${www.url.stats}" keyfile="~/.ssh/id_rsa" knownhosts="~/.ssh/known_hosts">
<fileset dir="${aggregates.dir}">
<include name="${mdaggr.stats}"/>
</fileset>
</scp>
<scp failonerror="true" remoteTodir="${www.url.members}" keyfile="~/.ssh/id_rsa" knownhosts="~/.ssh/known_hosts">
<fileset dir="${members.dir}">
<include name="members.xml"/>
</fileset>
</scp>
</then>
</if>
</target>
Expand Down

0 comments on commit 070071d

Please sign in to comment.