32 lines
579 B
Bash
32 lines
579 B
Bash
#!/bin/bash
|
|
|
|
declare -A ERREURS
|
|
declare -A ASTUCES
|
|
|
|
#Color declaration
|
|
ROUGE="\\033[1;31m"
|
|
NORMAL="\\033[0;39m"
|
|
CYAN="\\033[1;36m"
|
|
VERT="\\033[1;32m"
|
|
|
|
BOLD="\\033[1m"
|
|
UNDERLINE="\\033[4m"
|
|
TEXTNONE="\\033[0m"
|
|
|
|
#Var
|
|
dir="Exist"
|
|
log="Exist"
|
|
dbs="Exist"
|
|
sphinx="Exist"
|
|
sphinxlog="Exist"
|
|
|
|
#Tab of erreurs and astuces
|
|
ERREURS=(
|
|
["CHMOD"]="Execute the script with SUDO or in ROOT"
|
|
["DIRECTORY"]="Directory not create"
|
|
["FILE"]=
|
|
["CMD"]="This command not exist"
|
|
["NOCMD"]="Please enter options")
|
|
|
|
ASTUCES=(
|
|
["CREATE"]="Sphinx --create (prepare l'environement)") |