[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [collector/master] Added symlink update steps.



commit 94278aa92fbb99f1c7c4f048bbd981b47bc5981f
Author: iwakeh <iwakeh@xxxxxxxxxxxxxx>
Date:   Wed Jul 13 14:50:53 2016 +0200

    Added symlink update steps.
---
 src/main/resources/create-tarballs.sh | 44 +++++++++++++++++++++++++++++++++--
 1 file changed, 42 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/create-tarballs.sh b/src/main/resources/create-tarballs.sh
index 6b3785d..cc75219 100755
--- a/src/main/resources/create-tarballs.sh
+++ b/src/main/resources/create-tarballs.sh
@@ -3,12 +3,14 @@
 # Copyright 2016 The Tor Project
 # See LICENSE for licensing information.
 #
-# Script for creating descriptor tarballs on a CollecTor instance.
+# Script for creating descriptor tarballs on a CollecTor instance,
+# and creating/touching the symlinks for the web-app.
 #
 ####
 # Configuration section:
 # The following path should be adjusted, if the CollecTor server layout differs.
 # OUTDIR and TARBALLTARGETDIR have to be given absolute or relative to WORKDIR.
+ARCHIVEDIR="archive"
 WORKDIR="tarballs"
 OUTDIR="../out"
 TARBALLTARGETDIR="../data"
@@ -104,5 +106,43 @@ echo `date` "Moving tarballs into place"
 mv *.tar.xz $TARBALLTARGETDIR
 
 cd $CURRENTPATH
-echo `date` "Finished."
 
+echo `date` "Finished tarball creation.  Starting symlink-update ..."
+
+mkdir -p $ARCHIVEDIR/bridge-descriptors/
+ln -f -s -t $ARCHIVEDIR/bridge-descriptors/ $TARBALLTARGETDIR/bridge-descriptors-20??-??.tar.xz
+
+mkdir -p $ARCHIVEDIR/bridge-pool-assignments/
+ln -f -s -t $ARCHIVEDIR/bridge-pool-assignments/ $TARBALLTARGETDIR/bridge-pool-assignments-20??-??.tar.xz
+
+mkdir -p $ARCHIVEDIR/exit-lists/
+ln -f -s -t $ARCHIVEDIR/exit-lists/ $TARBALLTARGETDIR/exit-list-20??-??.tar.xz
+
+mkdir -p $ARCHIVEDIR/relay-descriptors/
+ln -f -s -t $ARCHIVEDIR/relay-descriptors/ $TARBALLTARGETDIR/certs.tar.xz
+
+mkdir -p $ARCHIVEDIR/relay-descriptors/consensuses/
+ln -f -s -t $ARCHIVEDIR/relay-descriptors/consensuses/ $TARBALLTARGETDIR/consensuses-20??-??.tar.xz
+
+mkdir -p $ARCHIVEDIR/relay-descriptors/extra-infos/
+ln -f -s -t $ARCHIVEDIR/relay-descriptors/extra-infos/ $TARBALLTARGETDIR/extra-infos-20??-??.tar.xz
+
+mkdir -p $ARCHIVEDIR/relay-descriptors/microdescs/
+ln -f -s -t $ARCHIVEDIR/relay-descriptors/microdescs/ $TARBALLTARGETDIR/microdescs-20??-??.tar.xz
+
+mkdir -p $ARCHIVEDIR/relay-descriptors/server-descriptors/
+ln -f -s -t $ARCHIVEDIR/relay-descriptors/server-descriptors/ $TARBALLTARGETDIR/server-descriptors-20??-??.tar.xz
+
+mkdir -p $ARCHIVEDIR/relay-descriptors/statuses/
+ln -f -s -t $ARCHIVEDIR/relay-descriptors/statuses/ $TARBALLTARGETDIR/statuses-20??-??.tar.xz
+
+mkdir -p $ARCHIVEDIR/relay-descriptors/tor/
+ln -f -s -t $ARCHIVEDIR/relay-descriptors/tor/ $TARBALLTARGETDIR/tor-20??-??.tar.xz
+
+mkdir -p $ARCHIVEDIR/relay-descriptors/votes/
+ln -f -s -t $ARCHIVEDIR/relay-descriptors/votes/ $TARBALLTARGETDIR/votes-20??-??.tar.xz
+
+mkdir -p $ARCHIVEDIR/torperf/
+ln -f -s -t $ARCHIVEDIR/torperf/ $TARBALLTARGETDIR/torperf-20??-??.tar.xz
+
+echo `date` "Finished."

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits