diff --git a/.gitignore b/.gitignore index c0c4d69..c0b211b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /data/ +/config.ini /otadb.db3 diff --git a/clean_dupes.php b/bin/clean_dupes.php similarity index 94% rename from clean_dupes.php rename to bin/clean_dupes.php index 0c280cb..ad84c76 100755 --- a/clean_dupes.php +++ b/bin/clean_dupes.php @@ -1,7 +1,7 @@ #!/usr/bin/env php dbFile = 'otadb.db3'; + $this->dbFile = __DIR__ . '/../../otadb.db3'; $this->pdo = new \PDO('sqlite:' . $this->dbFile); if ($this->pdo === false) { return false; diff --git a/lib/TclUpdates/SQLiteWriter.php b/lib/TclUpdates/SQLiteWriter.php index 94f8179..52155f0 100644 --- a/lib/TclUpdates/SQLiteWriter.php +++ b/lib/TclUpdates/SQLiteWriter.php @@ -9,7 +9,7 @@ class SQLiteWriter public function __construct() { - $this->dbFile = 'otadb.db3'; + $this->dbFile = __DIR__ . '/../../otadb.db3'; $this->pdo = new \PDO('sqlite:' . $this->dbFile); if ($this->pdo === false) { return false;