Fixed the collect stats script.

feature/internationalization
Ruslan Baidan 2020-11-24 12:40:12 +01:00
parent a35fd122c0
commit e0b60c44ff
No known key found for this signature in database
GPG Key ID: 4B7724C136BF1D89
1 changed files with 5 additions and 4 deletions

View File

@ -5,14 +5,15 @@
for conf_file_path in /var/www/*/local.php
do
export APP_CONF_DIR=$conf_file_path
config_path=$(dirname "$conf_file_path")
export APP_CONF_DIR=$config_path
echo "[$(date)] Collecting stats for client: $conf_file_path."
echo "[$(date)] Collecting stats for client: $config_path."
# local use:
#/home/vagrant/monarc/bin/console monarc:collect-stats >> "$conf_file_path"/collect_stats.log
#/home/vagrant/monarc/bin/console monarc:collect-stats >> "$config_path"/collect_stats.log
/var/lib/monarc/fo/bin/console monarc:collect-stats >> "$conf_file_path"/data/collect_stats.log
/var/lib/monarc/fo/bin/console monarc:collect-stats >> "$config_path"/collect_stats.log
echo "[$(date)] Finished."
done