diff --git a/Vps/Model/Db.php b/Vps/Model/Db.php
index <HASH>..<HASH> 100644
--- a/Vps/Model/Db.php
+++ b/Vps/Model/Db.php
@@ -1037,7 +1037,7 @@ class Vps_Model_Db extends Vps_Model_Abstract
         $config = Zend_Registry::get('config');
 
         $ret['mysqlDir'] = '';
-        if ($config->server->host == 'vivid-planet.com') {
+        if (trim(`hostname`) == "vivid-sun") {
             $ret['mysqlDir'] = '/usr/local/mysql/bin/';
         }
         $ret['tableName'] = $this->getTableName();
improve mysqlDir hack by checking hostname

this still sucks