I have noticed the number of cores in the footer of Aegir control panel do not get updated. On my server I get a constant "C" not being preceeded with the number of cores currently installed.

I propose - in order to get this display even on self-hosted servers - to add one line to the "usage.sh" script. It would be handy to call the function "read_account_data ()" located on the line 73 (http://drupalcode.org/project/barracuda.git/blob/HEAD:/aegir/tools/auto-...) also on the the line 434 (http://drupalcode.org/project/barracuda.git/blob/HEAD:/aegir/tools/auto-...) just before the "drush vset" gets called so the variable "$_CLIENT_CORES" does not stay empty.

if [ -d "$_THIS_HM_SITE" ] ; then
  cd $_THIS_HM_SITE
  read_account_data
  su -s /bin/bash $_THIS_HM_USER -c "drush vset --always-set site_footer 'Daily Usage Monitor | Disk <strong>$HomSizH</strong> MB | Databases <strong>$SumDatH</strong> MB | <strong>$_CLIENT_CORES</strong> C' &> /dev/null"
  if [ ! -e "$User/log/custom_cron" ] ; then
    su -s /bin/bash $_THIS_HM_USER -c "drush vset --always-set hosting_queue_cron_frequency 3600 &> /dev/null"
    su -s /bin/bash $_THIS_HM_USER -c "drush vset --always-set hosting_cron_use_backend 1 &> /dev/null"
  fi
fi

Comments

omega8cc’s picture

Category: bug » feature
Priority: Minor » Normal
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.