Fix cron restart

This commit is contained in:
Adam Outler
2025-11-17 00:20:08 +00:00
parent dbd1bdabc2
commit 0cd7528284
3 changed files with 10 additions and 12 deletions

View File

@@ -28,6 +28,8 @@ if (!is_dir($dbFolderPath)) {
@mkdir($dbFolderPath, 0775, true);
}
$dbFolderPath = rtrim($dbFolderPath, '/') . '/';
$DBFILE = rtrim($dbFolderPath, '/') . '/app.db';
if (!file_exists($DBFILE) && file_exists($legacyDbPath)) {
$DBFILE = $legacyDbPath;
@@ -41,6 +43,8 @@ if (!is_dir($logFolderPath)) {
@mkdir($logFolderPath, 0775, true);
}
$logFolderPath = rtrim($logFolderPath, '/') . '/';
$DBFILE_LOCKED_FILE = rtrim($logFolderPath, '/') . '/db_is_locked.log';