diff --git a/scripts/getFirefox b/scripts/getFirefox index 483a9a4..4b4cd6c 100755 --- a/scripts/getFirefox +++ b/scripts/getFirefox @@ -1,6 +1,6 @@ #!/bin/bash -version=4.6.0 +version=4.6.1 date="26/12/2017" projet="simpledeb" contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/" @@ -306,7 +306,7 @@ f_help(){ # 26/12/2017 echo -e "$STD Tor Browser, voir getXfox:$YELLOW https://kyodev.frama.io/kyopages/scripts/getXfox/\n$STD" } - # traitement utilisateur(profiles.ini), $1=canal + # traitement utilisateur(profiles.ini), $1=canal, [$2='user'] si appel indépendant pour reconfiguration ffx_config_profil(){ # 26/12/2017 local nbProfiles canal="$1" appli="Firefox" @@ -327,7 +327,7 @@ ffx_config_profil(){ # 26/12/2017 fi # inscription canal dans profil.ini, à la fin, si inexistant if ! grep -q "Name=$canal" "$dirProfilFfx/profiles.ini" ; then - # comptage profils existants + # comptage profils existants nbProfiles=$( grep -cEs '\[Profile[0-9]+\]' "$dirProfilFfx/profiles.ini" ) # création profil dans profile.ini echo >> "$dirProfilFfx/profiles.ini" @@ -344,6 +344,7 @@ ffx_config_profil(){ # 26/12/2017 ffx_config_system(){ # 26/12/2017 local canal="$1" appli="Firefox" profileIni="$dirProfilFfx/profiles.ini" local ligne numero marqueur stockage + if [ "$EUID" -ne 0 ]; then f__info "vous devez être$RED ROOT$BLUE pour configurer $canal comme défaut dans le système" f__sudo "exec $0 u-$canal" @@ -1026,7 +1027,7 @@ for j in $options; do produit=${j#*-} [ "$produit" == "all" ] && produit="$produit_all" for k in $produit; do - ffx_config_profil "$k" # configurer un canal pour user en cours + ffx_config_profil "$k" "user" # configurer un canal pour user en cours ffx_config_system "$k" # défaut système done exit ;; diff --git a/scripts/getFirefox_changelog.md b/scripts/getFirefox_changelog.md index e5c6852..487f6e1 100644 --- a/scripts/getFirefox_changelog.md +++ b/scripts/getFirefox_changelog.md @@ -1,6 +1,12 @@ # changelog getFirefox +## getFirefox 4.6.1 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) + ## getFirefox 4.5.0 25/12/2017 * cosmétique