getThunderbird 1.7.0

This commit is contained in:
kyodev 2017-12-06 14:58:16 +01:00
parent a8b06d0719
commit 0adb2d7a5b
2 changed files with 14 additions and 11 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
version=1.6.1
date="5/12/2017"
version=1.7.0
date="6/12/2017"
projet="simpledeb"
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
script="getThunderbird"
@ -340,7 +340,6 @@ f_tb_get_canalBas(){ # 23/09/2017
for i in beta latest; do
if [ -d "$dirInstall$i/" ]; then thunderbirdCanalBas="$i"; fi
done
unset i
[ "$thunderbirdCanalBas" ] || return 1
}
@ -667,7 +666,7 @@ fscript_remove(){ # 4/12/2017
}
# mise à jour script si dispo, v2, +update spécifique
fscript_update(){ # 4/12/2017
fscript_update(){ # 6/12/2017
local dirTemp="/tmp/$script-$RANDOM"
[ $(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"
wget -q --tries=2 --timeout=15 -O "$dirTemp/$script" "$urlScript"
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"
chmod 775 "$scriptInstall" # rwx rwx r-x, proprio fu_user
chown "$fu_user:" "$scriptInstall"
@ -731,12 +730,12 @@ f__requis "wget file tar killall>psmisc" || exit 1
######## début script / initialisation
# logo et définition couleurs
f_affichage
# tests au démarrage
prg_init
# logo et définition couleurs
f_affichage
urlScript="https://framagit.org/kyodev/kyopages/raw/master/scripts/getThunderbird/"
urlNotice="https://kyodev.frama.io/kyopages/scripts/getThunderbird/"
user_agent="Mozilla/5.0 Firefox"
@ -760,7 +759,6 @@ for j in $options; do
produit="$(sed 's/i-//; s/+//' <<< "$1")"
if [ "$produit" == "all" ]; then produit="$produitAll"; fi
for k in $produit; do f_tb_install "$k"; done
unset k
exit ;; # install: installation canal thunderbird $1=produit
m-latest | m-beta )
f_tb_alertIcedove
@ -771,7 +769,6 @@ for j in $options; do
produit="$(sed 's/r-//; s/-//' <<< "$1")"
if [ "$produit" == "all" ]; then produit="$produitAll"; fi
for k in $produit; do f_tb_remove "$k"; done
unset k
exit ;; # remove: désinstallation thunderbird (y compris ancien répertoire éventuel)
u-latest | u-beta )
produit="$(sed 's/u-//' <<< "$1")"
@ -803,8 +800,10 @@ for j in $options; do
exit ;; # affichage help
esac
done
unset j
exit 0
### END CONTROL (contrôle chargement)
wget -O getThunderbird https://framagit.org/kyodev/kyopages/raw/master/scripts/getThunderbird
chmod +x getThunderbird && ./getThunderbird

View File

@ -1,6 +1,10 @@
# 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