--- apps/leo_gateway/snmp/snmpa_gateway_0/leo_gateway_snmp.config.orig	2014-06-15 22:05:33.000000000 +0300
+++ apps/leo_gateway/snmp/snmpa_gateway_0/leo_gateway_snmp.config	2014-06-15 22:06:17.000000000 +0300
@@ -1,6 +1,6 @@
 [{snmp, [{agent, [{versions, [v1, v2]},
-                  {db_dir, "snmp/snmpa_gateway_0/db"},
-                  {config, [{dir, "snmp/snmpa_gateway_0/agent/conf"},
+                  {db_dir, "%%LEOFS_DBDIR%%/snmp/snmpa_gateway"},
+                  {config, [{dir, "%%PREFIX%%/lib/leofs/snmp/snmpa_gateway/agent/conf"},
                             {verbosity, silence}]},
                   {net_if, [{verbosity, silence}]}
                  ]},
