2020-11-17 14:39:50 +01:00
|
|
|
#! /usr/bin/env bash
|
|
|
|
|
|
|
|
# local use:
|
|
|
|
#for conf_file_path in /home/vagrant/monarc/config/*/local.php
|
|
|
|
|
|
|
|
for conf_file_path in /var/www/*/local.php
|
|
|
|
do
|
2020-11-24 12:40:12 +01:00
|
|
|
config_path=$(dirname "$conf_file_path")
|
|
|
|
export APP_CONF_DIR=$config_path
|
2020-11-17 14:39:50 +01:00
|
|
|
|
2020-11-24 12:40:12 +01:00
|
|
|
echo "[$(date)] Collecting stats for client: $config_path."
|
2020-11-17 14:39:50 +01:00
|
|
|
|
|
|
|
# local use:
|
2020-11-27 14:02:35 +01:00
|
|
|
#/home/vagrant/monarc/bin/console monarc:collect-stats >> "$config_path"/data/collect_stats.log
|
2020-11-17 14:39:50 +01:00
|
|
|
|
2020-11-27 14:02:35 +01:00
|
|
|
/var/lib/monarc/fo/bin/console monarc:collect-stats >> "$config_path"/data/collect_stats.log
|
2020-11-17 14:39:50 +01:00
|
|
|
|
|
|
|
echo "[$(date)] Finished."
|
|
|
|
done
|