From 9ca8eea590d9744ef71bdbdb76a68dcad7187314 Mon Sep 17 00:00:00 2001 From: Matthieu Patout Date: Fri, 10 Dec 2021 09:51:31 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20d'un=20script=20de=20statistiques=20sur?= =?UTF-8?q?=20les=20CMS=20h=C3=A9berg=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stats-cms.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 stats-cms.sh diff --git a/stats-cms.sh b/stats-cms.sh new file mode 100644 index 0000000..a28f6d0 --- /dev/null +++ b/stats-cms.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# Compte le nombre de fichiers spécifiques à divers CMS pour établir grosso-modo le nombre de CMS hébergés +/usr/bin/find /var/www/vhosts/ -maxdepth 4 -name wp-config.php | wc -l | sed 's/.*/Wordpress : &/' > stats-cms.txt +/usr/bin/find /var/www/vhosts/ -maxdepth 4 -name spip.png | wc -l | sed 's/.*/SPIP : &/' >> stats-cms.txt +/usr/bin/find /var/www/vhosts/ -maxdepth 4 -name association.sqlite | wc -l | sed 's/.*/Garradin : &/' >> stats-cms.txt +/usr/bin/find /var/www/vhosts/ -maxdepth 4 -name joomla.php | wc -l | sed 's/.*/Joomla : &/' >> stats-cms.txt +/usr/bin/find /var/www/vhosts/ -maxdepth 4 -name drupal | wc -l | sed 's/.*/Drupal : &/' >> stats-cms.txt +/usr/bin/find /var/www/vhosts/ -maxdepth 4 -name popuphelp.php | wc -l | sed 's/.*/Piwigo : &/' >> stats-cms.txt +/usr/bin/find /var/www/vhosts/ -maxdepth 4 -name occ | wc -l | sed 's/.*/Nextcloud : &/' >> stats-cms.txt +/usr/bin/find /var/www/vhosts/ -maxdepth 4 -name now.json | wc -l | sed 's/.*/Guppy : &/' >> stats-cms.txt +/usr/bin/find /var/www/vhosts/ -maxdepth 4 -name renfilesantispam.inc | wc -l | sed 's/.*/Grav : &/' >> stats-cms.txt +/usr/bin/find /var/www/vhosts/ -maxdepth 4 -name doku.php | wc -l | sed 's/.*/Dokuwiki : &/' >> stats-cms.txt \ No newline at end of file