From 2ff0eafdacfdab8382ba13640054f42eb88599d4 Mon Sep 17 00:00:00 2001 From: bserie Date: Fri, 2 Mar 2018 10:40:06 +0100 Subject: [PATCH] /var/cache/duc.idx pour le cgi --- HowtoDUC.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/HowtoDUC.md b/HowtoDUC.md index 56ad9d26..7bc1f93a 100644 --- a/HowtoDUC.md +++ b/HowtoDUC.md @@ -116,14 +116,14 @@ Il suffit de créer ce script sh dans `/usr/lib/cgi-bin/duc.cgi`, de donner les ~~~ #!/bin/sh -/usr/bin/duc cgi -d /backup/duc.idx --list +/usr/bin/duc cgi -d /var/cache/duc.idx --list ~~~ ~~~ # chmod 755 /usr/lib/cgi-bin/duc.cgi # chown www-data: /usr/lib/cgi-bin/duc.cgi -# chmod 640 /backup/duc.idx -# chgrp www-data /backup/duc.idx +# chmod 640 /var/cache/duc.idx +# chgrp www-data /var/cache/duc.idx ~~~ Il faudra ensuite utiliser un serveur Web comme [HowtoApache](Apache) pour y accéder. @@ -152,5 +152,5 @@ Pour exclure un répertoire (./backup/ contenant de nombreux fichiers), se place Il peut être judicieux de créer un cron pour faire une indexation journalière, très pratique quand couplé avec l'interface CGI. ~~~ -30 6 * * * duc index -q -d /backup/duc.idx /backup/jails && chmod 640 /backup/duc.idx && chgrp www-data /backup/duc.idx +30 6 * * * duc index -q -d /var/cache/duc.idx / && chmod 640 /var/cache/duc.idx && chgrp www-data /var/cache/duc.idx ~~~ \ No newline at end of file