mirror of https://framagit.org/kyodev/kyopages.git
getThunderbird 1.7.0
This commit is contained in:
parent
a8b06d0719
commit
0adb2d7a5b
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
version=1.6.1
|
version=1.7.0
|
||||||
date="5/12/2017"
|
date="6/12/2017"
|
||||||
projet="simpledeb"
|
projet="simpledeb"
|
||||||
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
|
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
|
||||||
script="getThunderbird"
|
script="getThunderbird"
|
||||||
|
@ -340,7 +340,6 @@ f_tb_get_canalBas(){ # 23/09/2017
|
||||||
for i in beta latest; do
|
for i in beta latest; do
|
||||||
if [ -d "$dirInstall$i/" ]; then thunderbirdCanalBas="$i"; fi
|
if [ -d "$dirInstall$i/" ]; then thunderbirdCanalBas="$i"; fi
|
||||||
done
|
done
|
||||||
unset i
|
|
||||||
[ "$thunderbirdCanalBas" ] || return 1
|
[ "$thunderbirdCanalBas" ] || return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -667,7 +666,7 @@ fscript_remove(){ # 4/12/2017
|
||||||
}
|
}
|
||||||
|
|
||||||
# mise à jour script si dispo, v2, +update spécifique
|
# mise à jour script si dispo, v2, +update spécifique
|
||||||
fscript_update(){ # 4/12/2017
|
fscript_update(){ # 6/12/2017
|
||||||
local dirTemp="/tmp/$script-$RANDOM"
|
local dirTemp="/tmp/$script-$RANDOM"
|
||||||
|
|
||||||
[ $(type -t fscript_update_special) ] && fscript_update_special # test, si fonction spécifique, appel
|
[ $(type -t fscript_update_special) ] && fscript_update_special # test, si fonction spécifique, appel
|
||||||
|
@ -683,7 +682,7 @@ fscript_update(){ # 4/12/2017
|
||||||
mkdir -p "$dirTemp"
|
mkdir -p "$dirTemp"
|
||||||
wget -q --tries=2 --timeout=15 -O "$dirTemp/$script" "$urlScript"
|
wget -q --tries=2 --timeout=15 -O "$dirTemp/$script" "$urlScript"
|
||||||
if [ "$?" != "0" ]; then f__wget_test "$urlScript"; fi
|
if [ "$?" != "0" ]; then f__wget_test "$urlScript"; fi
|
||||||
if grep -q '#!/bin/bash' "$dirTemp/$script" ; then
|
if grep -q '#!/bin/bash' "$dirTemp/$script" && grep -q '^### END CONTROL' "$dirTemp/$script"; then
|
||||||
cp -d "$dirTemp/$script" "$scriptInstall"
|
cp -d "$dirTemp/$script" "$scriptInstall"
|
||||||
chmod 775 "$scriptInstall" # rwx rwx r-x, proprio fu_user
|
chmod 775 "$scriptInstall" # rwx rwx r-x, proprio fu_user
|
||||||
chown "$fu_user:" "$scriptInstall"
|
chown "$fu_user:" "$scriptInstall"
|
||||||
|
@ -731,12 +730,12 @@ f__requis "wget file tar killall>psmisc" || exit 1
|
||||||
|
|
||||||
######## début script / initialisation
|
######## début script / initialisation
|
||||||
|
|
||||||
# logo et définition couleurs
|
|
||||||
f_affichage
|
|
||||||
|
|
||||||
# tests au démarrage
|
# tests au démarrage
|
||||||
prg_init
|
prg_init
|
||||||
|
|
||||||
|
# logo et définition couleurs
|
||||||
|
f_affichage
|
||||||
|
|
||||||
urlScript="https://framagit.org/kyodev/kyopages/raw/master/scripts/getThunderbird/"
|
urlScript="https://framagit.org/kyodev/kyopages/raw/master/scripts/getThunderbird/"
|
||||||
urlNotice="https://kyodev.frama.io/kyopages/scripts/getThunderbird/"
|
urlNotice="https://kyodev.frama.io/kyopages/scripts/getThunderbird/"
|
||||||
user_agent="Mozilla/5.0 Firefox"
|
user_agent="Mozilla/5.0 Firefox"
|
||||||
|
@ -760,7 +759,6 @@ for j in $options; do
|
||||||
produit="$(sed 's/i-//; s/+//' <<< "$1")"
|
produit="$(sed 's/i-//; s/+//' <<< "$1")"
|
||||||
if [ "$produit" == "all" ]; then produit="$produitAll"; fi
|
if [ "$produit" == "all" ]; then produit="$produitAll"; fi
|
||||||
for k in $produit; do f_tb_install "$k"; done
|
for k in $produit; do f_tb_install "$k"; done
|
||||||
unset k
|
|
||||||
exit ;; # install: installation canal thunderbird $1=produit
|
exit ;; # install: installation canal thunderbird $1=produit
|
||||||
m-latest | m-beta )
|
m-latest | m-beta )
|
||||||
f_tb_alertIcedove
|
f_tb_alertIcedove
|
||||||
|
@ -771,7 +769,6 @@ for j in $options; do
|
||||||
produit="$(sed 's/r-//; s/-//' <<< "$1")"
|
produit="$(sed 's/r-//; s/-//' <<< "$1")"
|
||||||
if [ "$produit" == "all" ]; then produit="$produitAll"; fi
|
if [ "$produit" == "all" ]; then produit="$produitAll"; fi
|
||||||
for k in $produit; do f_tb_remove "$k"; done
|
for k in $produit; do f_tb_remove "$k"; done
|
||||||
unset k
|
|
||||||
exit ;; # remove: désinstallation thunderbird (y compris ancien répertoire éventuel)
|
exit ;; # remove: désinstallation thunderbird (y compris ancien répertoire éventuel)
|
||||||
u-latest | u-beta )
|
u-latest | u-beta )
|
||||||
produit="$(sed 's/u-//' <<< "$1")"
|
produit="$(sed 's/u-//' <<< "$1")"
|
||||||
|
@ -803,8 +800,10 @@ for j in $options; do
|
||||||
exit ;; # affichage help
|
exit ;; # affichage help
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
unset j
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
### END CONTROL (contrôle chargement)
|
||||||
|
|
||||||
wget -O getThunderbird https://framagit.org/kyodev/kyopages/raw/master/scripts/getThunderbird
|
wget -O getThunderbird https://framagit.org/kyodev/kyopages/raw/master/scripts/getThunderbird
|
||||||
chmod +x getThunderbird && ./getThunderbird
|
chmod +x getThunderbird && ./getThunderbird
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
# changelog getThunderbird
|
# changelog getThunderbird
|
||||||
|
|
||||||
|
|
||||||
|
## getThunderbird 1.7.0 6/12/2017
|
||||||
|
|
||||||
|
* révision: fscript_update, controle chargement début et fin
|
||||||
|
* révision: changement séquence start pour éviter erreur cron
|
||||||
|
|
||||||
## 1.6.1 5/12/2017
|
## 1.6.1 5/12/2017
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue