Commit e893fe92 authored by boklm's avatar boklm Committed by Richard Pospesel
Browse files

Bug 40979: Add redirects from old linux filenames in .htaccess, part 2

In a previous commit we already updated projects/release/build for that,
however we re-generate the .htaccess file during the signing process, in
tools/signing/staticiforme-prepare-cdn-dist-upload.
parent b12391cb
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -11,6 +11,17 @@ RewriteRule ^sha256sums.txt.asc$ sha256sums-unsigned-build.txt.asc
RewriteRule ^sha256sums.incrementals.txt$ sha256sums-unsigned-build.incrementals.txt
RewriteRule ^sha256sums.incrementals.txt.asc$ sha256sums-unsigned-build.incrementals.txt.asc
EOF

# Adding redirects for tor-browser-build#40979
if is_project torbrowser; then
  cat >> "$dist_dir/.htaccess" << 'EOF'
RewriteRule ^tor-browser-linux64-(.*)_ALL.tar.xz.asc$ tor-browser-linux-x86_64-$1.tar.xz.asc
RewriteRule ^tor-browser-linux64-(.*)_ALL.tar.xz$ tor-browser-linux-x86_64-$1.tar.xz
RewriteRule ^tor-browser-linux32-(.*)_ALL.tar.xz.asc$ tor-browser-linux-i686-$1.tar.xz.asc
RewriteRule ^tor-browser-linux32-(.*)_ALL.tar.xz$ tor-browser-linux-i686-$1.tar.xz
EOF
fi

chgrp -R tb-release "$dist_dir"
chmod 775 "$dist_dir"
chmod 664 "$dist_dir"/*