You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
1.2 KiB
Bash

#!/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