Commit 7174efed authored by intrigeri's avatar intrigeri

Set Tor Browser's homepage to https://tails.boum.org/home/testing/ if building...

Set Tor Browser's homepage to https://tails.boum.org/home/testing/ if building anything but a stable release (refs: #12003)

This depends on web/12003-custom-home-for-rc being merged into master,
so that this new specific homepage actually exists.
parent 4f076247
......@@ -186,6 +186,7 @@ echo "live-build: `dpkg-query -W -f='${Version}\n' live-build`" \
cat >> config/chroot_local-includes/etc/os-release <<EOF
TAILS_PRODUCT_NAME="Tails"
TAILS_VERSION_ID="$AMNESIA_VERSION"
TAILS_DISTRIBUTION="$TAILS_DISTRIBUTION"
EOF
if echo "$AMNESIA_VERSION" | grep -qs -E '~(alpha|beta|rc)[0-9]*$' ; then
echo 'TAILS_CHANNEL="alpha"' >> config/chroot_local-includes/etc/os-release
......
......@@ -49,3 +49,6 @@ AMNESIA_FULL_VERSION="${AMNESIA_VERSION} - ${SOURCE_DATE_YYYYMMDD}"
AMNESIA_DEV_FULLNAME='Tails developers'
AMNESIA_DEV_EMAIL="tails@boum.org"
AMNESIA_DEV_KEYID="A490 D0F4 D311 A415 3E2B B7CA DBB8 02B2 58AC D84F"
# Used to set a custom home page if the distribution is UNRELEASED
TAILS_DISTRIBUTION="`dpkg-parsechangelog -SDistribution`"
......@@ -81,6 +81,11 @@ while IFS=: read MOZILLA_LOCALE LOCATION; do
"\"${SPELLCHECKER_LOCALE}\"" \
"user_pref"
HOMEPAGE="https://tails.boum.org/home/"
. /etc/os-release # get $TAILS_CHANNEL and $TAILS_DISTRIBUTION
if [ "${TAILS_DISTRIBUTION}" = UNRELEASED ] \
|| [ "${TAILS_CHANNEL}" = alpha ]; then
HOMEPAGE="${HOMEPAGE}testing/"
fi
if echo "${TAILS_WIKI_SUPPORTED_LANGUAGES}" | grep -qw "${LANG_CODE}"; then
HOMEPAGE="${HOMEPAGE}index.${LANG_CODE}.html"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment