Merge branch 'stable' into devel
[tails.git] / bin / publish-iuks
blob159f608ecdc74b75f35da90534650f3da44402fe
1 #!/bin/bash
3 set -eu
4 set -x
6 # shellcheck disable=SC2087
7 ssh rsync.lizard <<-EOF
8 sudo chown root:rsync_tails /srv/tmp/Tails_amd64_*_to_${VERSION:?}.iuk && \
9 sudo chmod u=rwX,go=rX /srv/tmp/Tails_amd64_*_to_${VERSION:?}.iuk && \
10 sudo mv /srv/tmp/Tails_amd64_*_to_${VERSION:?}.iuk \
11 /srv/rsync/tails/tails/${DIST:?}/iuk/v2/
12 EOF
14 "$(dirname "$0")"/update-trace-time \
15 "Updating trace file after uploading the IUKs for ${VERSION:?}."
17 ssh rsync.lizard rm -f "/srv/tmp/to_${VERSION?:}.sha256sum"