From 96b74c88e9db1e728ff29b18b05cf0aab00a8966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Didier=20Clermont=C3=A9?= Date: Sat, 13 Apr 2019 15:22:50 +0200 Subject: [PATCH] Improved rapport_activite.sh with absolute path --- tools/rapport_activite.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/rapport_activite.sh b/tools/rapport_activite.sh index 8dc06387..822a234a 100755 --- a/tools/rapport_activite.sh +++ b/tools/rapport_activite.sh @@ -61,7 +61,8 @@ generateReport() echo "Nombre de lectures ce mois = $readPasteCount" echo "Nombre de lectures ce mois - les commentaires = $((readPasteCount-commentCount))" - pasteCount=$(find ../data -mindepth 2 -maxdepth 3 -type f | wc -l) + + pasteCount=$(find /var/www/paste.chapril.org/data -mindepth 3 -maxdepth 3 -type f | wc -l) echo "Nombre de pastes dans la base actuellement = $pasteCount" echo }