Simplification des chemins
This commit is contained in:
parent
20d0b73ca2
commit
fe7b92c91b
@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
PATH_BIN=/usr/bin
|
||||
PATH_LOG=/var/lib/sphinx/log
|
||||
PATH_SQL=/home/indexer/sql
|
||||
MYSQL_HOST=192.168.3.30
|
||||
MYSQL_USER=sphinx
|
||||
MYSQL_PASS=indexer
|
||||
PATH_LOG=/var/lib/sphinx/log
|
||||
PATH_BIN=/usr/bin
|
||||
PATH_SQL=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/sql
|
||||
|
||||
# Is consolidated ?
|
||||
output=$(mysql -h$MYSQL_HOST -u$MYSQL_USER -p$MYSQL_PASS sdv1 < $PATH_SQL/consolidate-ciblage.sql)
|
||||
|
@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
PATH_BIN=/usr/local/sphinx/bin
|
||||
PATH_LOG=/var/lib/sphinx/log
|
||||
PATH_SQL=/home/indexer/sql
|
||||
MYSQL_HOST=192.168.3.30
|
||||
MYSQL_USER=sphinx
|
||||
MYSQL_PASS=indexer
|
||||
PATH_LOG=/var/lib/sphinx/log
|
||||
PATH_BIN=/usr/bin
|
||||
PATH_SQL=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/sql
|
||||
|
||||
# Is consolidated ?
|
||||
output=$(mysql -h$MYSQL_HOST -u$MYSQL_USER -p$MYSQL_PASS sdv1 < $PATH_SQL/consolidate-dir.sql)
|
||||
|
@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
PATH_BIN=/usr/bin
|
||||
PATH_LOG=/var/lib/sphinx/log
|
||||
PATH_SQL=/home/indexer/sql
|
||||
MYSQL_HOST=192.168.3.30
|
||||
MYSQL_USER=sphinx
|
||||
MYSQL_PASS=indexer
|
||||
PATH_LOG=/var/lib/sphinx/log
|
||||
PATH_BIN=/usr/bin
|
||||
PATH_SQL=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/sql
|
||||
|
||||
# Is consolidated ?
|
||||
output=$(mysql -h$MYSQL_HOST -u$MYSQL_USER -p$MYSQL_PASS sdv1 < $PATH_SQL/consolidate-ent.sql)
|
||||
|
@ -1,10 +1,6 @@
|
||||
#!/bin/bash
|
||||
PATH_BIN=/usr/bin
|
||||
PATH_LOG=/var/lib/sphinx/log
|
||||
PATH_SQL=/home/indexer/sql
|
||||
MYSQL_HOST=192.168.3.30
|
||||
MYSQL_USER=sphinx
|
||||
MYSQL_PASS=indexer
|
||||
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') === RERPISE INDEXATION CIBLAGE" >> $PATH_LOG/indexer.log
|
||||
|
||||
|
@ -1,11 +1,7 @@
|
||||
#!/bin/bash
|
||||
PATH_BIN=/usr/local/sphinx/bin
|
||||
PATH_LOG=/var/lib/sphinx/log
|
||||
PATH_SQL=/home/indexer/sql
|
||||
MYSQL_HOST=192.168.3.30
|
||||
MYSQL_USER=sphinx
|
||||
MYSQL_PASS=indexer
|
||||
|
||||
PATH_BIN=/usr/bin
|
||||
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') === REPRISE INDEXATION DIR" >> $PATH_LOG/indexer.log
|
||||
|
||||
# Sphinx rotate
|
||||
|
@ -1,10 +1,6 @@
|
||||
#!/bin/bash
|
||||
PATH_BIN=/usr/bin
|
||||
PATH_LOG=/var/lib/sphinx/log
|
||||
PATH_SQL=/home/indexer/sql
|
||||
MYSQL_HOST=192.168.3.30
|
||||
MYSQL_USER=sphinx
|
||||
MYSQL_PASS=indexer
|
||||
PATH_BIN=/usr/bin
|
||||
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') === REPRISE INDEXATION ENT" >> $PATH_LOG/indexer.log
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
PATH_BIN=/usr/bin
|
||||
PATH_LOG=/var/lib/sphinx/log
|
||||
PATH_BIN=/usr/bin
|
||||
|
||||
echo "$(date '+%Y-%m-%d %H:%M:%S') === INDEXATION HISTO" >> $PATH_LOG/indexer.log
|
||||
$PATH_BIN/indexer --rotate histo >> $PATH_LOG/indexer.log
|
||||
|
@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
PATH_BIN=/usr/bin
|
||||
PATH_LOG=/var/lib/sphinx/log
|
||||
PATH_SQL=/home/indexer/sql
|
||||
MYSQL_HOST=192.168.3.30
|
||||
MYSQL_USER=sphinx
|
||||
MYSQL_PASS=indexer
|
||||
PATH_LOG=/var/lib/sphinx/log
|
||||
PATH_BIN=/usr/bin
|
||||
PATH_SQL=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/sql
|
||||
|
||||
# Indexation déjà lancé
|
||||
FILEINDEX=$PATH_LOG/ciblage-$(date '+%Y%m%d').idx
|
||||
|
@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
PATH_BIN=/usr/bin
|
||||
PATH_LOG=/var/lib/sphinx/log
|
||||
PATH_SQL=/home/indexer/sql
|
||||
MYSQL_HOST=192.168.3.30
|
||||
MYSQL_USER=sphinx
|
||||
MYSQL_PASS=indexer
|
||||
PATH_LOG=/var/lib/sphinx/log
|
||||
PATH_BIN=/usr/bin
|
||||
PATH_SQL=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/sql
|
||||
|
||||
# Indexation déjà lancé
|
||||
FILEINDEX=$PATH_LOG/dir-$(date '+%Y%m%d').idx
|
||||
|
@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
PATH_BIN=/usr/bin
|
||||
PATH_LOG=/var/lib/sphinx/log
|
||||
PATH_SQL=/home/indexer/sql
|
||||
MYSQL_HOST=192.168.3.30
|
||||
MYSQL_USER=sphinx
|
||||
MYSQL_PASS=indexer
|
||||
PATH_LOG=/var/lib/sphinx/log
|
||||
PATH_BIN=/usr/bin
|
||||
PATH_SQL=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/sql
|
||||
|
||||
# Indexation déjà lancé
|
||||
FILEINDEX=$PATH_LOG/ent-$(date '+%Y%m%d').idx
|
||||
|
Loading…
Reference in New Issue
Block a user