mirror of https://framagit.org/kyodev/kyopages.git
typo
This commit is contained in:
parent
1458e0e15f
commit
252eb6d82c
|
@ -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
|
||||
```
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue