Commits

Zhang Huangbin  committed a4b0d75

Fix incorrect section name.

  • Participants
  • Parent commits dcc6587

Comments (0)

Files changed (2)

File etc/iredapd.ini.sample

 password    = Psaf68wsuVctYSbj4PJzRqmFsE0rlQ
 
 # Enabled plugins.
-#   - Plugin name is file name which placed under 'src/plugins/' directory.
+#   - Plugin name is file name which placed under 'src/plugins/' directory,
+#     starts with 'sql_'.
 #   - Plugin names MUST be seperated by comma.
 plugins = sql_alias_access_policy

File src/iredapd.py

                             import psycopg2
                             try:
                                 db = psycopg2.connect(
-                                    host=cfg.get('pgsql', 'server', 'localhost'),
-                                    port=cfg.get('pgsql', 'port', '5432'),
-                                    database=cfg.get('pgsql', 'db', 'vmail'),
-                                    user=cfg.get('pgsql', 'user', 'vmail'),
-                                    password=cfg.get('pgsql', 'password'),
+                                    host=cfg.get('sql', 'server', 'localhost'),
+                                    port=cfg.get('sql', 'port', '5432'),
+                                    database=cfg.get('sql', 'db', 'vmail'),
+                                    user=cfg.get('sql', 'user', 'vmail'),
+                                    password=cfg.get('sql', 'password'),
                                 )
                                 cursor = db.cursor()
                             except Exception, e: