| 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 |
|---|
| 4 | test -x /usr/lib/alternc/philesight || exit 0 |
|---|
| 5 | |
|---|
| 6 | . /etc/alternc/local.sh |
|---|
| 7 | |
|---|
| 8 | INDEX_DIR="/" |
|---|
| 9 | DIR_PHILESIGHT=/var/alternc/philesight |
|---|
| 10 | |
|---|
| 11 | echo "Creating Philesight indexation" |
|---|
| 12 | /usr/lib/alternc/philesight --db $DIR_PHILESIGHT"/server.db.tmp" --index $INDEX_DIR |
|---|
| 13 | |
|---|
| 14 | if [ -f $DIR_PHILESIGHT"/server.db" ]; then |
|---|
| 15 | rm $DIR_PHILESIGHT"/server.db" |
|---|
| 16 | fi |
|---|
| 17 | |
|---|
| 18 | mv $DIR_PHILESIGHT"/server.db.tmp" $DIR_PHILESIGHT"/server.db" |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | echo "Index created" |
|---|
Note: See
TracBrowser
for help on using the repository browser.