diff --git a/mirror-nixos-branch.sh b/mirror-nixos-branch.sh index d3bcd2a..a9c7820 100755 --- a/mirror-nixos-branch.sh +++ b/mirror-nixos-branch.sh @@ -73,8 +73,8 @@ rsync -avR . hydra-mirror@nixos.org:"$releasesDir" --exclude .htaccess --exclude # Update the channel. htaccess=$channelsDir/.htaccess-$channelName -echo "Redirect /channels/$channelName http://releases.nixos.org/nixos/$branch/$release" > $htaccess.tmp -echo "Redirect /releases/nixos/channels/$channelName http://releases.nixos.org/nixos/$branch/$release" >> $htaccess.tmp # obsolete +echo "Redirect /channels/$channelName /releases/nixos/$branch/$release" > $htaccess.tmp +echo "Redirect /releases/nixos/channels/$channelName /releases/nixos/$branch/$release" >> $htaccess.tmp # obsolete mv $htaccess.tmp $htaccess ln -sfn $releaseDir $channelsDir/$channelName # dummy symlink diff --git a/mirror-nixpkgs.sh b/mirror-nixpkgs.sh index 5e9d142..d2f09aa 100755 --- a/mirror-nixpkgs.sh +++ b/mirror-nixpkgs.sh @@ -48,8 +48,8 @@ rsync -avR . hydra-mirror@nixos.org:"$releasesDir" --delete >&2 # Update the channel. htaccess=$channelsDir/.htaccess-$channelName -echo "Redirect /channels/$channelName http://releases.nixos.org/nixpkgs/$release" > $htaccess.tmp -echo "Redirect /releases/nixpkgs/channels/$channelName http://releases.nixos.org/nixpkgs/$release" >> $htaccess.tmp # obsolete +echo "Redirect /channels/$channelName /releases/nixpkgs/$release" > $htaccess.tmp +echo "Redirect /releases/nixpkgs/channels/$channelName /releases/nixpkgs/$release" >> $htaccess.tmp # obsolete mv $htaccess.tmp $htaccess ln -sfn $releaseDir $channelsDir/$channelName # dummy symlink