Ajout de la version 2.0.2 de sphinx
This commit is contained in:
parent
cc8e122575
commit
1ba2583ae5
10
Sphinx.sh
10
Sphinx.sh
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
allVersion=("2.0.1" "0.9.9")
|
||||
allVersion=("2.0.1" "0.9.9" "2.0.2")
|
||||
declare -A ERREURS
|
||||
declare -A ASTUCES
|
||||
|
||||
@ -32,7 +32,7 @@ ASTUCES=(
|
||||
|
||||
function loadIndication() {
|
||||
while [ -d "/proc/$1" ]
|
||||
do #Current PID in /proc |
|
||||
do #Current PID in /proc
|
||||
echo -en "Loading... /\033[1G"; sleep .07
|
||||
echo -en "Loading... -\033[1G"; sleep .07
|
||||
echo -en "Loading... / \033[1G"; sleep .07
|
||||
@ -70,13 +70,15 @@ then
|
||||
if [ ! -e /dbs/sphinxlog ];then `mkdir /dbs/sphinxlog`; fi
|
||||
if [ ! -e /init.d/sphinxsearch ];then `cp initscript/sphinxsearch /etc/init.d/ > /dev/null` ;`chmod +x /etc/init.d/sphinxsearch > /dev/null`; `update-rc.d sphinxsearch defaults > /dev/null`; fi
|
||||
if [ ! -e config/${HOSTNAME} ];then `mkdir config/${HOSTNAME}`;fi
|
||||
if [ ! -e sphinx-2.0.1.tar.gz ] || [ ! -e sphinx-0.9.9.tar.gz ]
|
||||
if [ ! -e sphinx-2.0.1.tar.gz ] || [ ! -e sphinx-0.9.9.tar.gz ] || [ ! -e sphinx-2.0.2.tar.gz ]
|
||||
then
|
||||
if [ ! -z $2 ]; then
|
||||
if [ $2 == "2.0.1" ]; then
|
||||
version="$2-beta"
|
||||
elif [ $2 == "0.9.9" ]; then
|
||||
version="$2"
|
||||
version="$2-beta"
|
||||
elif [ $2 == "2.0.2" ]; then
|
||||
version="$2"
|
||||
else
|
||||
echo -e $ROUGE"[Erreur]: This version not exist !"$NORMAL
|
||||
exit
|
||||
|
Loading…
Reference in New Issue
Block a user