--- fossology-1.1.0.orig/cli/fo_notify.php
+++ fossology-1.1.0/cli/fo_notify.php
@@ -170,13 +170,10 @@
  * check both locations for Db.conf, check package 1st, then upstream
  * if local host, need to get hostname.
  */
-$PackagePath = '/etc/fossology/Db.conf';
-$UpStreamPath = '/usr/local/etc/fossology/Db.conf';
-if(file_exists($PackagePath)) {
-  $contents = file_get_contents($PackagePath);
-}
-else if(file_exists($UpStreamPath)) {
-  $contents = file_get_contents($UpStreamPath);
+global $SYSCONFDIR;
+
+if(file_exists("$SYSCONFDIR/Db.conf")) {
+  $contents = file_get_contents("$SYSCONFDIR/Db.conf");
 }
 // get rid of new lines
 $c = str_replace("\n",'',$contents);
