source: cpc/trunk/project/bin/indexSolr @ 1450

Last change on this file since 1450 was 1450, checked in by teymour, 11 years ago

script permettant l'indéxation de Solr (avec protection bash)

File size: 280 bytes
Line 
1#!/bin/bash
2
3#LOCK
4LOCK="/tmp/indexSolr.bash.lock"
5if test -e $LOCK ;
6then
7        echo Script locké par $(cat $LOCK) : $LOCK
8        exit 1;
9fi
10
11option=''
12if test "$1" = "all"; then 
13   option="--all=yes"
14fi
15
16echo $$ > $LOCK
17
18while ! php symfony index:Solr $option do
19sleep 1
20done
21
22rm $LOCK ;
Note: See TracBrowser for help on using the repository browser.