Browse Source

Add a redirect for downloads/latest

download-server-ytdl-org
Philipp Hagemeister 11 years ago
parent
commit
54a1852f08
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      update_latest.sh

+ 2
- 0
update_latest.sh View File

@ -16,5 +16,7 @@ for f in $(ls "downloads/$version/"); do \
done
ln -sf --no-target-directory "$version" "downloads/latest"
/bin/echo -e "RewriteEngine On\nRewriteRule latest(.*) /downloads/${version}\$1 [L,R=302]" > .htaccess
echo -n "$version" > latest/version

Loading…
Cancel
Save