aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason van Zyl <jvanzyl@apache.org>2006-11-29 19:18:14 +0000
committerJason van Zyl <jvanzyl@apache.org>2006-11-29 19:18:14 +0000
commit9d1dd1b91ca6960ad676b877eab5f6748a940054 (patch)
treef123b243feee66500245aace29d78a5b6ac41487
parent63f6445bd80532b483fc5f1aaed7cabfee3383ed (diff)
downloadarchiva-9d1dd1b91ca6960ad676b877eab5f6748a940054.tar.gz
archiva-9d1dd1b91ca6960ad676b877eab5f6748a940054.zip
o separate out syncing of rewrites
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@480687 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-xmaven-meeper/src/bin/synchronize-rewrite-rules-to-ibiblio.sh18
-rwxr-xr-xmaven-meeper/src/bin/synchronize.sh8
2 files changed, 19 insertions, 7 deletions
diff --git a/maven-meeper/src/bin/synchronize-rewrite-rules-to-ibiblio.sh b/maven-meeper/src/bin/synchronize-rewrite-rules-to-ibiblio.sh
new file mode 100755
index 000000000..ed99c168c
--- /dev/null
+++ b/maven-meeper/src/bin/synchronize-rewrite-rules-to-ibiblio.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+[ "$1" = "" ] && echo && echo "You must pass in the synchronize.properties file!" && echo && exit
+
+. $1
+
+# ------------------------------------------------------------------------
+# Copy the mod_rewrite rules to the Maven 1.x repository
+# ------------------------------------------------------------------------
+
+[ "$MODE" = "batch" ] && echo && echo "Press any key to copy the m1 to m2 rewrite rules, or hit ^C to quit." && echo
+
+echo "Copying rewrite rules into place"
+
+cp $M1_M2_REWRITE_RULES $MAVEN1_REPO/.htaccess
+
+scp $M1_M2_REWRITE_RULES $IBIBLIO_SYNC_HOST:$M1_IBIBLIO_SYNC_DIR/.htaccess
+
diff --git a/maven-meeper/src/bin/synchronize.sh b/maven-meeper/src/bin/synchronize.sh
index b8c15fbe8..4ee418a3e 100755
--- a/maven-meeper/src/bin/synchronize.sh
+++ b/maven-meeper/src/bin/synchronize.sh
@@ -111,12 +111,6 @@ retval=$?; if [ $retval != 0 ]; then exit $retval; fi
# Copy the mod_rewrite rules to the Maven 1.x repository
# ------------------------------------------------------------------------
-[ "$MODE" = "batch" ] && echo && echo "Press any key to copy the m1 to m2 rewrite rules, or hit ^C to quit." && echo
-
-echo "Copying rewrite rules into place"
-
-cp $M1_M2_REWRITE_RULES $MAVEN1_REPO/.htaccess
-
-scp $M1_M2_REWRITE_RULES maven@login.ibiblio.org:/public/html/maven/.htaccess
+./synchronize-rewrite-rules-to-ibiblio.sh $syncProperties
) | tee $SYNC_REPORTS/last-sync-results.txt ) 2>&1