6 NAME
=$
(basename "${0}")
7 LONGOPTS
="version:,dist:,release-branch:,matching-jenkins-images-build-id:"
8 OPTS
=$
(getopt
-o "" --longoptions $LONGOPTS -n "${NAME}" -- "$@")
10 while [ $# -gt 0 ]; do
24 --matching-jenkins-images-build-id)
26 MATCHING_JENKINS_IMAGES_BUILD_ID
="$1"
32 ssh rsync.lizard gpg
--import < wiki
/src
/tails-signing.key
34 ssh rsync.lizard
<< EOF
36 "https://nightly.tails.boum.org/build_Tails_ISO_${RELEASE_BRANCH:?}/builds/${MATCHING_JENKINS_IMAGES_BUILD_ID:?}/archive/build-artifacts/tails-amd64-${VERSION:?}.iso" \
37 "https://nightly.tails.boum.org/build_Tails_ISO_${RELEASE_BRANCH:?}/builds/${MATCHING_JENKINS_IMAGES_BUILD_ID:?}/archive/build-artifacts/tails-amd64-${VERSION:?}.img" && \
38 gpg --verify tails-amd64-${VERSION:?}.iso{.sig,} && \
39 gpg --verify tails-amd64-${VERSION:?}.img{.sig,}
42 ssh rsync.lizard
<< EOF
43 sudo install -o root -g rsync_tails -m 0755 -d \
44 /srv/rsync/tails/tails/${DIST:?}/tails-amd64-${VERSION:?} && \
45 sudo chown root:rsync_tails tails-amd64-${VERSION:?}.{iso,img}* && \
46 sudo chmod u=rwX,go=rX tails-amd64-${VERSION:?}.{iso,img}* && \
47 sudo mv tails-amd64-${VERSION:?}.{iso,img}* \
48 /srv/rsync/tails/tails/${DIST:?}/tails-amd64-${VERSION:?}