fix: import of translations for cronjobs was missing (#321)

refactor: retrieval of webroot path
chore: add sqlite to docker image
This commit is contained in:
Miguel Ribeiro
2024-05-13 17:45:59 +02:00
committed by GitHub
parent 46f933ade7
commit a524419e0a
10 changed files with 17 additions and 24 deletions
+1 -4
View File
@@ -1,8 +1,6 @@
<?php
require_once 'conf.php';
$databaseFile = $webPath . 'db/wallos.db';
$databaseFile = __DIR__ . '/../../db/wallos.db';
if (!file_exists($databaseFile)) {
echo "Database does not exist. Creating it...\n";
@@ -234,7 +232,6 @@ if (!file_exists($databaseFile)) {
} else {
echo "Database already exist. Checking for upgrades...\n";
$databaseFile = $webPath . 'db/wallos.db';
$db = new SQLite3($databaseFile);
$db->busyTimeout(5000);