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