[tbb-commits] [tor-browser-spec/master] Bug 33523: Rename the previous update responses directory to .old

gk at torproject.org gk at torproject.org
Fri Mar 6 11:30:03 UTC 2020


commit 02500b653b55a6e6241aee58cbff245fac2fb758
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Wed Mar 4 12:18:43 2020 +0100

    Bug 33523: Rename the previous update responses directory to .old
    
    In order to make it easier to quickly disable an update in case of
    issue.
---
 processes/ReleaseProcess | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/processes/ReleaseProcess b/processes/ReleaseProcess
index f6256db..7d731d9 100644
--- a/processes/ReleaseProcess
+++ b/processes/ReleaseProcess
@@ -200,7 +200,10 @@
    chmod 664 ${TORBROWSER_UPDATE_CHANNEL}/*
    chmod 664 ${TORBROWSER_UPDATE_CHANNEL}/.htaccess
    chmod 775 ${TORBROWSER_UPDATE_CHANNEL}/
-   torsocks ssh staticiforme.torproject.org "rm -rf /srv/aus1-master.torproject.org/htdocs/torbrowser/update_3/${TORBROWSER_UPDATE_CHANNEL}/*"
+   # Rename the update responses directory to .old to make it easier to
+   # revert in case of problem
+   torsocks ssh staticiforme.torproject.org "rm -rf /srv/aus1-master.torproject.org/htdocs/torbrowser/update_3/${TORBROWSER_UPDATE_CHANNEL}.old"
+   torsocks ssh staticiforme.torproject.org "mv -v /srv/aus1-master.torproject.org/htdocs/torbrowser/update_3/${TORBROWSER_UPDATE_CHANNEL} /srv/aus1-master.torproject.org/htdocs/torbrowser/update_3/${TORBROWSER_UPDATE_CHANNEL}.old"
    torsocks rsync -avP $TORBROWSER_UPDATE_CHANNEL staticiforme.torproject.org:/srv/aus1-master.torproject.org/htdocs/torbrowser/update_3/
    torsocks ssh staticiforme.torproject.org "chown -R :torwww /srv/aus1-master.torproject.org/htdocs/torbrowser/update_3/${TORBROWSER_UPDATE_CHANNEL}/*"
    torsocks ssh staticiforme.torproject.org "static-update-component aus1.torproject.org"



More information about the tbb-commits mailing list