From 252eb6d82cb3f03916cf63f1c77117d0325e009a Mon Sep 17 00:00:00 2001 From: kyodev Date: Wed, 19 Jul 2017 17:01:01 +0200 Subject: [PATCH] typo --- docs/scripts/getFlashPlayer.md | 3 +- scripts/diag_getFirefox | 51 ++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 2 deletions(-) create mode 100755 scripts/diag_getFirefox diff --git a/docs/scripts/getFlashPlayer.md b/docs/scripts/getFlashPlayer.md index 50d4121..014a390 100644 --- a/docs/scripts/getFlashPlayer.md +++ b/docs/scripts/getFlashPlayer.md @@ -55,9 +55,8 @@ chmod +x getFlashPlayer && ./getFlashPlayer le test de mise à jour est fait hebdomadairement, lors du test de mise à jour possible du plugin -le passage à la version 2.x, doit être fait une dernière fois manuellement en root: +le passage à la version 2.x, doit être fait une dernière fois manuellement en **root**: ```shell -su wget https://framagit.org/kyodev/kyopages/raw/master/scripts/getFlashPlayer \ && chmod +x getFlashPlayer && ./getFlashPlayer ``` diff --git a/scripts/diag_getFirefox b/scripts/diag_getFirefox new file mode 100755 index 0000000..ddadbe7 --- /dev/null +++ b/scripts/diag_getFirefox @@ -0,0 +1,51 @@ +#!/bin/bash + +user_agent="Mozilla/5.0 (X11; Linux $(uname -m); rv:54.0) Gecko/20100101 Firefox/54.0" + # test wget, $1 url à tester, retourne url testée & entêtes +f__testWget(){ + echo "$1: $2" + wget -Sq --tries=1 --timeout=10 --user-agent="$user_agent" --spider --save-headers "$2" &>tempoTest + http="$(cat tempoTest | grep -i 'HTTP/')" + http="$(echo $http | tr '\n' ' - ')" + location="$(cat tempoTest | grep -i 'location')" + echo " $http" + echo " $location" +} + +for architecture in linux linux64; do + echo "" + echo "Architecture: $architecture" + echo "=====================" + for product in latest esr beta nightly; do +#[ "$product" == "devedition" ]; then +# recup_url="https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=$architecture&lang=fr" + if [ "$product" == "latest" ]; then + recup_url="https://download.mozilla.org/?product=firefox-$product&os=$architecture&lang=fr" + elif [ "$product" == "esr" ]; then + recup_url="https://download.mozilla.org/?product=firefox-$product-latest&os=$architecture&lang=fr" + elif [ "$product" == "beta" ]; then + recup_url="https://download.mozilla.org/?product=firefox-beta-latest&os=$architecture&lang=fr" + elif [ "$product" == "nightly" ]; then + recup_url="https://download.mozilla.org/?product=firefox-$product-latest-l10n-ssl&os=linux&lang=fr" ;fi + + f__testWget "$product" "$recup_url" + done +done + +rm tempoTest +echo "" + +exitError + +### liens + +https://download-installer.cdn.mozilla.net/pub/firefox/releases/latest/README.txt +https://download-installer.cdn.mozilla.net/pub/firefox/releases/latest-beta/README.txt + https://www.mozilla.org/fr/firefox/channel/desktop/ +https://download.mozilla.org/?product=firefox-nightly-latest-l10n-ssl&os=linux&lang=fr +https://download-installer.cdn.mozilla.net/pub/firefox/releases/latest-esr/README.txt + +------------------ +périmé +https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-aurora-l10n/ 404 +https://download.mozilla.org/?product=firefox-aurora-latest-l10n-ssl&os=linux&lang=fr 404 dev ed