source: alternc-philesight/trunk/debian/cron.weekly @ 2771

Revision 2771, 473 bytes checked in by azerttyu, 3 years ago (diff)

Un cron qui fait correctement son boulot

Il faut penser à l'initialisation où la base se créée

  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3#Note n'est supprimé que lors d'un --purge
4test -x /usr/lib/alternc/philesight || exit 0
5
6. /etc/alternc/local.sh
7
8INDEX_DIR="/"
9DIR_PHILESIGHT=/var/alternc/philesight
10
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    rm $DIR_PHILESIGHT"/server.db"
16fi
17
18mv $DIR_PHILESIGHT"/server.db.tmp" $DIR_PHILESIGHT"/server.db"
19
20
21echo "Index created"
Note: See TracBrowser for help on using the repository browser.