This commit is contained in:
kyodev 2018-06-09 08:44:08 +02:00
parent 204c6b1fff
commit b767fa7a85
6 changed files with 406 additions and 418 deletions

View File

@ -12,7 +12,7 @@
* les installations/désinstallations doivent être faites avec les privilèges **root** * les installations/désinstallations doivent être faites avec les privilèges **root**
* les opérations sur l'utilisateur, ou sur la mise à jour du script, peuvent être faites en utilisateur. * les opérations sur l'utilisateur, ou sur la mise à jour du script, peuvent être faites en utilisateur.
> le programme Firefox est pris en charge par [getFirefox](https://kyodev.frama.io/kyopages/scripts/getFirefox/) > le programme Firefox est pris en charge par [getFirefox](https://framaclic.org/h/doc-getfirefox)
## installation rapide du script ## installation rapide du script
@ -20,18 +20,18 @@
* privilèges **root** requis * privilèges **root** requis
```shell ```shell
wget -nv -O getXfox https://framagit.org/kyodev/kyopages/raw/master/scripts/getXfox wget -nv -O getXfox https://framaclic.org/h/getxfox
chmod +x getXfox && ./getXfox chmod +x getXfox && ./getXfox
``` ```
```text ```text
_ __ __ __ _ __ __ __
__ _ ___| |_\ \/ // _| _____ __ __ _ ___| |_\ \/ // _| _____ __
/ _' |/ _ \ __|\ /| |_ / _ \ \/ / / _' |/ _ \ __|\ /| |_ / _ \ \/ /
| (_| | __/ |_ / \| _| (_) > < | (_| | __/ |_ / \| _| (_) > <
\__, |\___|\__/_/\_\_| \___/_/\_\Tor Browser WaterFox \__, |\___|\__/_/\_\_| \___/_/\_\Tor Browser WaterFox
|___/ version 4.17.0 - 09/03/2018 |___/ version 4.16.0 - 09/06/2018
getXfox 4.17.0 installé dans le système. getXfox 4.16.0 installé dans le système.
maintenant, appel du script par: getXfox (sans ./) maintenant, appel du script par: getXfox (sans ./)
``` ```
@ -105,12 +105,12 @@ getXfox i-wfx
getXfox -h getXfox -h
``` ```
```text ```text
_ __ __ __ _ __ __ __
__ _ ___| |_\ \/ // _| _____ __ __ _ ___| |_\ \/ // _| _____ __
/ _' |/ _ \ __|\ /| |_ / _ \ \/ / / _' |/ _ \ __|\ /| |_ / _ \ \/ /
| (_| | __/ |_ / \| _| (_) > < | (_| | __/ |_ / \| _| (_) > <
\__, |\___|\__/_/\_\_| \___/_/\_\Tor Browser WaterFox \__, |\___|\__/_/\_\_| \___/_/\_\Tor Browser WaterFox
|___/ version 4.17.0 - 09/03/2018 |___/ version 4.16.0 - 09/06/2018
---------------------------------------------------------------------- ----------------------------------------------------------------------
softs possibles: tor, wfx (Tor Browser, Waterfox) softs possibles: tor, wfx (Tor Browser, Waterfox)
exemple, installation Tor Browser: getXfox i-tor exemple, installation Tor Browser: getXfox i-tor
@ -121,7 +121,7 @@ getXfox -h
getXfox m-soft archi : installation de <soft> à partir d'une <archi>ve téléchargée manuellement (root) getXfox m-soft archi : installation de <soft> à partir d'une <archi>ve téléchargée manuellement (root)
getXfox r-soft : désinstallation (remove) de <soft> (root) getXfox r-soft : désinstallation (remove) de <soft> (root)
getXfox ri : réparation icône(s) et lanceur(s) dans le menu (root) getXfox ri : réparation icône(s) dans le menu (Tor Browser ou Waterfox)
getXfox u-soft : profil pour l'utilisateur en cours et comme défaut système (root) (Tor Browser n'est pas concerné) getXfox u-soft : profil pour l'utilisateur en cours et comme défaut système (root) (Tor Browser n'est pas concerné)
getXfox p-soft : personnalisation sur <soft> de user.js & userChrome.css getXfox p-soft : personnalisation sur <soft> de user.js & userChrome.css
@ -134,9 +134,9 @@ getXfox -h
getXfox -h, --help : affichage aide getXfox -h, --help : affichage aide
getXfox -r, --remove : désinstallation du script (root) getXfox -r, --remove : désinstallation du script (root)
getXfox -u, --upgrade : mise à jour du script getXfox -u, --upgrade : mise à jour du script
getXfox -v, --version : version du script getXfox -v, --version : version du script
plus d'infos: https://kyodev.frama.io/kyopages/scripts/getXfox/ plus d'infos: https://framaclic.org/h/doc-getxfox
``` ```
@ -147,26 +147,26 @@ getXfox -h
getXfox version getXfox version
``` ```
```text ```text
_ __ __ __ _ __ __ __
__ _ ___| |_\ \/ // _| _____ __ __ _ ___| |_\ \/ // _| _____ __
/ _' |/ _ \ __|\ /| |_ / _ \ \/ / / _' |/ _ \ __|\ /| |_ / _ \ \/ /
| (_| | __/ |_ / \| _| (_) > < | (_| | __/ |_ / \| _| (_) > <
\__, |\___|\__/_/\_\_| \___/_/\_\Tor Browser WaterFox \__, |\___|\__/_/\_\_| \___/_/\_\Tor Browser WaterFox
|___/ version 4.17.0 - 09/03/2018 |___/ version 4.16.0 - 09/06/2018
script en place: 4.15.0 script en place: 4.16.0
script en ligne: 4.15.0 script en ligne: 4.16.0
Tor Browser en place: 7.5 -- January 23 2018 Tor Browser en place: 7.5 -- January 23 2018
Tor Browser en ligne: 7.5 Tor Browser en ligne: 7.5
perso. Tor Browser en place: Non Installé Tor Browser en place: Non Installé
perso. Tor Browser en ligne: 0.2 Tor Browser en ligne: 7.5.4
Waterfox en place: 56.0.4 Waterfox en place: 56.0.4
Waterfox en ligne: 56.0.4.1 Waterfox en ligne: 56.2.0
perso. Waterfox en place: Non Installé perso. Waterfox en place: 0.6
perso. Waterfox en ligne: 0.6 perso. Waterfox en ligne: 0.6
``` ```
@ -207,13 +207,13 @@ getXfox p-soft
* pour figer des fichiers de personnalisations et ne pas les mettre à jour, il suffit d'effacer les fichiers * pour figer des fichiers de personnalisations et ne pas les mettre à jour, il suffit d'effacer les fichiers
`personnalisation` `personnalisation`
* contenu de [user.js](https://framagit.org/kyodev/kyopages/blob/master/scripts/user.js) * contenu de [user.js](https://framagit.org/sdeb/getFirefox/blob/master/user.js)
* contenu de [userChrome.css](https://framagit.org/kyodev/kyopages/blob/master/scripts/userChrome.css) * contenu de [userChrome.css](https://framagit.org/sdeb/getFirefox/blob/master/userChrome.css)
pour Tor Browser pour Tor Browser
* contenu de [user.js](https://framagit.org/kyodev/kyopages/blob/master/scripts/userTor.js) * contenu de [user.js](https://framagit.org/sdeb/getXfox/blob/master/userTor.js)
* contenu de [userChrome.css](https://framagit.org/kyodev/kyopages/blob/master/scripts/userChromeTor.css) * contenu de [userChrome.css](https://framagit.org/sdeb/getXfox/blob/master/userChromeTor.css)
@ -307,22 +307,22 @@ getXfox -r
## sources ## sources
sur [framagit](https://framagit.org/kyodev/kyopages/blob/master/scripts/getXfox) sur [framagit](https://framagit.org/sdeb/getXfox/blob/master/getXfox)
## changelog ## changelog
sur [framagit](https://framagit.org/kyodev/kyopages/blob/master/scripts/getXfox_changelog.md) sur [framagit](https://framagit.org/sdeb/getXfox/blob/master/CHANGELOG.md)
## contact ## contact
pour tout problème ou suggestion concernant ce script, n'hésitez pas à ouvrir une issue pour tout problème ou suggestion concernant ce script, n'hésitez pas à ouvrir une issue
[Framagit](https://framagit.org/kyodev/kyopages/issues) [Framagit](https://framagit.org/sdeb/getXfox/issues)
IRC freenode: ##sdeb IRC freenode: ##sdeb
## license ## license
[LPRAB/WTFPL](https://framagit.org/kyodev/kyopages/blob/master/scripts/LICENSE.md) [LPRAB/WTFPL](https://framagit.org/sdeb/getXfox/blob/master/LICENSE.md)

View File

@ -149,4 +149,4 @@ some servers, outside OpenNic, resolve alternative domain names, today: level3 &
* [LPRAB / WTFPL](https://framagit.org/sdeb/nstest/blob/master/LICENSE.md) * [LPRAB / WTFPL](https://framagit.org/sdeb/nstest/blob/master/LICENSE.md)
![compteur](https://framaclic.org/h/nestest-gif) ![compteur](https://framaclic.org/h/nstest-gif)

View File

@ -4,8 +4,8 @@
# SC2119 Use function "$@" if function's $1 should mean script's $1 (??) # SC2119 Use function "$@" if function's $1 should mean script's $1 (??)
# SC2120 function references arguments, but none are ever passed. # SC2120 function references arguments, but none are ever passed.
version=4.21.1 version=4.22.0
date="08/06/2018" date="09/06/2018"
#contact="IRC ##sdeb@freenode.net ou https://framagit.org/sdeb/getFirefox/issues" #contact="IRC ##sdeb@freenode.net ou https://framagit.org/sdeb/getFirefox/issues"
script="getFirefox" script="getFirefox"
@ -100,7 +100,7 @@ f__info(){ # 07/06/2018
f__trim log f__trim log
f__log "$log" f__log "$log"
fi fi
for (( i="$depart" ; i<=$# ; i++ )); do for (( i=$depart ; i<=$# ; i++ )); do
echo -e " $BLUE${!i}$STD" echo -e " $BLUE${!i}$STD"
done done
[[ "$1" =~ raw ]] || echo [[ "$1" =~ raw ]] || echo
@ -689,7 +689,7 @@ ffx_lanceur_desktop(){ # 09/03/2018
} }
# version personnalisation en ligne, [$1=quiet], assigne $perso_ffx_afaire # version personnalisation en ligne, [$1=quiet], assigne $perso_ffx_afaire
ffx_pers_get_version(){ # 07/06/2018 ffx_pers_get_version(){ # 09/06/2018
local ii verPersEnPlace persEnPlace verPersOnline local ii verPersEnPlace persEnPlace verPersOnline
x_ffx_pers_get_version=1 x_ffx_pers_get_version=1
@ -710,16 +710,16 @@ ffx_pers_get_version(){ # 07/06/2018
verPersOnline="${RED}non accessible$STD" # si quiet verPersOnline="${RED}non accessible$STD" # si quiet
continue continue
fi fi
if [[ "$verPersEnPlace" != "$verPersOnline" ]]; then if [ "$verPersEnPlace" != "$verPersOnline" ]; then
perso_ffx_afaire+="$ii " perso_ffx_afaire+="$ii "
fi fi
fi fi
done done
f__trim persEnPlace
f__trim verPersOnline
f__trim perso_ffx_afaire f__trim perso_ffx_afaire
[ "$1" == "quiet" ] && return 0 [ "$1" == "quiet" ] && return 0
f__trim persEnPlace
f__trim verPersOnline
persEnPlace=${persEnPlace:="Non installé"} persEnPlace=${persEnPlace:="Non installé"}
verPersOnline=${verPersOnline:="${RED}n/a$STD"} verPersOnline=${verPersOnline:="${RED}n/a$STD"}
f__info "raw" "perso. $appli en place: $GREEN$persEnPlace" f__info "raw" "perso. $appli en place: $GREEN$persEnPlace"
@ -1024,6 +1024,10 @@ produit_all_inverse="nightly beta latest esr" # tous les canaux sauf dev (=b
# url perso éventuellement personnalisée, une seule url possible, arrêt à la première trouvée # url perso éventuellement personnalisée, une seule url possible, arrêt à la première trouvée
for ii in $produit_all dev; do # première url personnalisée éventuellement trouvée for ii in $produit_all dev; do # première url personnalisée éventuellement trouvée
if [ -e "$dirProfilFfx/$ii/personnalisation.getFirefox" ]; then
# renommage anciens fichiers personnalisation
mv "$dirProfilFfx/$ii/personnalisation.getFirefox" "$dirProfilFfx/$ii/personnalisation"
fi
if [ -e "$dirProfilFfx/$ii/personnalisation" ]; then if [ -e "$dirProfilFfx/$ii/personnalisation" ]; then
[ -z "$urlPersoEnPlace" ] && read -r urlPersoEnPlace < "$dirProfilFfx/$ii/personnalisation" # url 1er fichier [ -z "$urlPersoEnPlace" ] && read -r urlPersoEnPlace < "$dirProfilFfx/$ii/personnalisation" # url 1er fichier
perso_ffx_enPlace+="$ii " perso_ffx_enPlace+="$ii "
@ -1035,11 +1039,6 @@ elif [ "$urlPersoEnPlace" != "$urlPersFfx" ]; then # url personnalisée
urlPersFfx="$urlPersoEnPlace" urlPersFfx="$urlPersoEnPlace"
fi fi
# renommage anciens fichiers personnalisation
for ii in $produit_all dev; do
[ -e "$dirProfilFfx/$ii/personnalisation.getFirefox" ] && mv "$dirProfilFfx/$ii/personnalisation.getFirefox" "$dirProfilFfx/$ii/personnalisation" # ancien nom
done
options="$*" options="$*"
# auto-installation script éventuel, si pas de marqueur $fileDev # auto-installation script éventuel, si pas de marqueur $fileDev
if [[ $( dirname "$0" ) != $( dirname "$script_install" ) && $( dirname "$0" ) != "/usr/bin" && ! -e "$fileDev" ]]; then if [[ $( dirname "$0" ) != $( dirname "$script_install" ) && $( dirname "$0" ) != "/usr/bin" && ! -e "$fileDev" ]]; then

View File

@ -4956,8 +4956,8 @@ exit 0
### END CONTROL (contrôle chargement) ### END CONTROL (contrôle chargement)
wget -nv -O getInfo https://framaclic.org/h/getInfo wget -nv -O getInfo https://framaclic.org/h/getinfo
curl -LO https://framaclic.org/h/getInfo curl -L -o getInfo https://framaclic.org/h/getinfo
chmod +x getInfo && ./getInfo chmod +x getInfo && ./getInfo
wget -nv -O getInfo https://framagit.org/sdeb/getInfo/raw/master/getInfo wget -nv -O getInfo https://framagit.org/sdeb/getInfo/raw/master/getInfo

File diff suppressed because it is too large Load Diff

View File

@ -1,84 +0,0 @@
# getXfox
*todo
* Default dans profiles.ini à implanter pour le futur?
## getXfox 4.15.0 04/03/2018
* synchro: f__color, f__info, f__sudo, f__user, f__wget_test
* synchro fscript_install, fscript_remove, fscript_update
* révision: prg_init, f_help
* révision: général ubuntu 16.04, f_tor_install, f_wfx_install
* fix: f_wfx_install, collision architecture si installation groupée wfx & tor
## getXfox 4.14.2 11/02/2018
* syncro: f__color
## getXfox 4.14.1 29/01/2018
révision: +requis awk>gawk
## getXfox 4.14.0 26/01/2018
* révision: mineur, fscript_cronAnacron fscript_install fscript_remove fscript_update
* révision: f__requis
* fix: f__sudo, extraction nb tentatives
## getXfox 4.12.0 24/01/2018
* révision: f_help, f_affichage
* révision: f_tor_install, f_wfx_install
* révision: général wget_log: fscript_get_version, fscript_update
## getXfox 4.11.0 16/01/2018
* nouveau: cumul options (opérations) possibles (sauf opés scripts)
* nouveau: option --sauve pour conserver le téléchargement à l'installation
* révision: ffx_lanceur_desktop, mimetype, plus de xul, pas de déclaration images
* révision; f__wget_test
* révision: f_sudo abandonné dans fscript_install et fscript_remove, au profit appel au traitement général des options
* révision: général, invocation f__sudo dans traitement options, plus confortable si su & _all_
* révision: f_sudo, format nombre de tentatives et options appel possibles > 1
* révision: menu réparation icône pour tous les canaux installés, menu help en conséquence
* révision: auto-installation, potentiel bug selon conditions appel
* fix: test gnome-www-browser avant installation (erreur kde)
## getXfox 4.10.0 12/01/2018
* fix: correction commentaire fscript_get_version
## getXfox 4.9.0 29/12/2017
* syncro composants
## getXfox 4.8.0 27/12/2017
* suivi getFirefox
## getXfox 4.7.0 26/12/2017
révision: f__info, option combinée raw:log
révision: f_help
remodelage: deux fonctions config_profil, config_system (traitement profil et défaut système)
révision: f_wfx_install, lanceur /usr/bin
révision; f_wfx_lanceur_desktop, chemins icone alternatifs
fix: f_wfx_remove, oubli suppression lien dans /usr/bin
## getXfox 4.5.0 25/12/2017
* cosmétique
* révision: tor_install, wfx_install, wfx_profil_user
* révision: général, plus de variables composées avec variable dans local
## getXfox 4.3.0 24/12/2017
* cosmétique
* fix: f__wget_test, incompatible avec redirection logs
* fix: typo fscript_update
## getXfox 4.1.0 23/12/2017
* base getFirefox v4.1.0
* prise en charge waterfox et tor browser