# download is finished once BROWSER_DIR_EN or BROWSER_DIR_DE exist
# download is finished once BROWSER_DIR_EN or BROWSER_DIR_DE exist
# as these directories only exist once torbrower has been successfully installed
# as these directories only exist once torbrower has been successfully installed
...
@@ -214,10 +228,7 @@ download_and_launch() {
...
@@ -214,10 +228,7 @@ download_and_launch() {
update_screenshot
update_screenshot
done
done
if[!-n"$STATUS"];then
if[!-n"$STATUS"];then
echo"'$(date-u) - could not download torbrowser, please investigate.'" | tee | xargs schroot --run-session-c$SESSION--preserve-environment-- notify-send -u critical
announce_failure_and_exit "$(date-u) - could not download torbrowser, please investigate."
update_screenshot
cleanup_duplicate_screenshots
exit 1
fi
fi
echo"$(date-u) - waiting for torbrowser to start the tor network settings dialogue."
echo"$(date-u) - waiting for torbrowser to start the tor network settings dialogue."
# allow up to 63 seconds for torbrowser to start the tor network settings dialogue
# allow up to 63 seconds for torbrowser to start the tor network settings dialogue
...
@@ -233,10 +244,7 @@ download_and_launch() {
...
@@ -233,10 +244,7 @@ download_and_launch() {
fi
fi
done
done
if[!-n"$STATUS"];then
if[!-n"$STATUS"];then
echo"'$(date-u) - could not start torbrowser, please investigate.'" | tee | xargs schroot --run-session-c$SESSION--preserve-environment-- notify-send -u critical
announce_failure_and_exit "$(date-u) - could not start torbrowser, please investigate."
update_screenshot
cleanup_duplicate_screenshots
exit 1
fi
fi
echo"$(date-u) - pressing <return>, to connect directly via tor."
echo"$(date-u) - pressing <return>, to connect directly via tor."
xvkbd -text"\r"> /dev/null 2>&1
xvkbd -text"\r"> /dev/null 2>&1
...
@@ -253,12 +261,7 @@ download_and_launch() {
...
@@ -253,12 +261,7 @@ download_and_launch() {
fi
fi
done
done
if[-z"$TOR_RUNNING"];then
if[-z"$TOR_RUNNING"];then
echo"'$(date-u) - could not connect successfuly via tor or could not run torbrowser at all. Aborting.'" | tee | xargs schroot --run-session-c$SESSION--preserve-environment-- notify-send -u critical
announce_problem_and_abort_silently "$(date-u) - could not connect successfuly via tor or could not run torbrowser at all. Aborting."
update_screenshot
cleanup_duplicate_screenshots
cleanup_all
exec /srv/jenkins/bin/abort.sh
exit 0
fi
fi
BONUS_LEVEL_1=""
BONUS_LEVEL_1=""
URL="http://vwakviie2ienjx6t.onion/debian/"# see http://richardhartmann.de/blog/posts/2015/08/24-Tor-enabled_Debian_mirror/
URL="http://vwakviie2ienjx6t.onion/debian/"# see http://richardhartmann.de/blog/posts/2015/08/24-Tor-enabled_Debian_mirror/
...
@@ -310,7 +313,9 @@ download_and_launch() {
...
@@ -310,7 +313,9 @@ download_and_launch() {
BONUS_MSG=""
BONUS_MSG=""
BONUS_COLORS=""
BONUS_COLORS=""
fi
fi
# sleep is added here, so the xterms come up in stable order