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

[tor-commits] [depictor/master] Create symlink for .html file, necessary for serving gzips



commit 9e3fb71a4589341caea3393db4d5e5b34179daa3
Author: Tom Ritter <tom@xxxxxxxxx>
Date:   Sun Mar 8 13:47:26 2015 -0500

    Create symlink for .html file, necessary for serving gzips
---
 write_website.py |    1 +
 1 file changed, 1 insertion(+)

diff --git a/write_website.py b/write_website.py
index 9c5463e..06fe35f 100755
--- a/write_website.py
+++ b/write_website.py
@@ -75,6 +75,7 @@ def main():
 							'consensus-health-' + w.get_consensus_time().strftime("%Y-%m-%d-%H-%M") + '.html')
 	subprocess.call(["cp", os.path.join(os.path.dirname(__file__), 'out', 'consensus-health.html'), archived])
 	subprocess.call(["gzip", "-9", archived])
+	subprocess.call(["ln", "-s", archived + ".gz", archived])
 
 
 def get_consensuses():



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