Changeset 2770


Ignore:
Timestamp:
09/02/10 14:09:59 (4 years ago)
Author:
azerttyu
Message:

Ne pas perdre la base d'indexation lors du cron

Indexation dans un fichier temporaire avant remplacement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • alternc-philesight/trunk/debian/cron.weekly

    r2769 r2770  
    99DIR_PHILESIGHT=/var/alternc/philesight 
    1010 
    11 if [ "$(ls -A $DIR_PHILESIGHT)" ]; then 
    12     rm -r $DIR_PHILESIGHT/* 
     11echo "Creating Philesight indexation" 
     12/usr/lib/alternc/philesight --db $DIR_PHILESIGHT"/server.db.tmp" --index $INDEX_DIR 
     13 
     14if [ -f $DIR_PHILESIGHT"/server.db" ]; then 
     15    mv $DIR_PHILESIGHT"/server.db.tmp" $DIR_PHILESIGHT"/server.db" 
    1316fi 
    14 echo "Creating Philesight indexation" 
    15 /usr/lib/alternc/philesight --db $DIR_PHILESIGHT"/server.db" --index $INDEX_DIR 
     17 
     18 
    1619echo "Index created" 
Note: See TracChangeset for help on using the changeset viewer.