This commit is contained in:
kyodev 2017-06-10 21:16:48 +02:00
parent ea10574ab1
commit 2374db0c9c
2 changed files with 29 additions and 24 deletions

View File

@ -33,7 +33,7 @@ lancer le script sans arguments: `getFlashPlayer`
\__, |\___|\__|_| |_|\__,_|___/_| |_|_| |_|\__,_|\__, |\___|_|
|___/ |___/
pour Firefox sur Debian, version 0.9.0 - 10/06/2017
pour Firefox sur Debian, version 0.9.1 - 10/06/2017
-----------------------------------------------------------------------
./getFlashPlayer : installation du script dans le système, en ROOT
@ -41,8 +41,9 @@ lancer le script sans arguments: `getFlashPlayer`
getFlashPlayer install : téléchargement & installation de FlashPlayer
getFlashPlayer remove : désinstallation de FlashPlayer
getFlashPlayer version : version en ligne de FlashPlayer
----
getFlashPlayer test : installation version de test de FlashPlayer
----
getFlashPlayer sysremove : désinstall du script du système, en ROOT
-----------------------------------------------------------------------
Ce script doit être exécuté avec les droits root uniquement pour
@ -120,7 +121,13 @@ en **root**: `getFlashPlayer sysremove`
sur [framagit](https://framagit.org/kyodev/kyopages/blob/master/scripts/getFlashPlayer)
## Contact
pour tout problème ou suggestion, concernant ce script, n'hésitez pas à contacter Kyodev [Framagit](https://framagit.org/kyodev/kyopages/issues)
pour tout problème ou suggestion concernant ce script, n'hésitez pas à ouvrir une issue
[Framagit](https://framagit.org/kyodev/kyopages/issues)
## LPRAB/WTFPL
[license](https://framagit.org/kyodev/kyopages/blob/master/LICENSE)

View File

@ -1,12 +1,12 @@
#!/bin/bash
version="0.9.0"
version="0.9.1"
projet="Kyodev"
contact="https://framagit.org/kyodev/kyopages/issues"
date="10/06/2017"
script="getFlashPlayer"
##### licence LPRAB/WTFPL
##### license LPRAB/WTFPL
# auteurs: kyodev
# contibuteurs: coyotus
# idée: naguam
@ -107,12 +107,12 @@ cat << 'EOF'
getFlashPlayer install : téléchargement & installation de FlashPlayer
getFlashPlayer remove : désinstallation de FlashPlayer
getFlashPlayer version : version en ligne de FlashPlayer
----
getFlashPlayer test : installation version de test de FlashPlayer
----
getFlashPlayer sysremove : désinstall du script du système, en ROOT
EOF
printf $COLOR
cat << 'EOF'
printf $COLOR; cat << 'EOF'
-----------------------------------------------------------------------
Ce script doit être exécuté avec les droits root uniquement pour
l'installation et la suppresion du script dans le système.
@ -214,33 +214,31 @@ f_remove(){
### traitements arguments =============================================
if [ "$#" -gt 1 ]; then cmd="help" && f_info "$RED trop d'arguments"
elif [ "$1" == "install" ]; then cmd="install"; flashTest='no'
elif [ "$1" == "remove" ]; then cmd="remove"
elif [ "$1" == "version" ]; then cmd="version"
elif [ "$1" == "test" ]; then cmd="install"; flashTest='yes'
elif [ "$1" == "sysremove" ]; then cmd="sysremove"
if [ "$#" -gt 1 ]; then cmd="help" && f_info "$RED trop d'arguments"
elif [ "$1" == "install" ]; then cmd="install"; flashTest='no'
elif [ "$1" == "remove" ]; then cmd="remove"
elif [ "$1" == "version" ]; then cmd="version"
elif [ "$1" == "test" ]; then cmd="install"; flashTest='yes'
elif [ "$1" == "sysremove" ]; then cmd="sysremove"
else cmd="help"
fi
#### installation script si pas dans le système ========================
#### installation du script si pas dans le système =====================
if ! f_scriptBin ; then f_sysinstall; fi
#### désinstallation du script =========================================
if [ "$cmd" == "sysremove" ]; then f_sysremove; fi
#### help ==============================================================
if [ "$cmd" == "help" ]; then f_help; f_avertissement; fi
#### système remove ====================================================
if [ "$cmd" == "sysremove" ]; then f_sysremove; fi
#### fonction version en ligne =========================================
#### version en ligne ==================================================
if [ "$cmd" == "version" ]; then f_versionFlash; fi
#### remove, on vire flash =============================================
if [ "$cmd" == "remove" ]; then f_remove; fi
#### installation ======================================================
if [ "$cmd" == "install" ]; then f_install; fi
#### désinstallation ===================================================
if [ "$cmd" == "remove" ]; then f_remove; fi
exit 0