fix permissions
Deploy / deploy (push) Failing after 3s

This commit is contained in:
2026-05-06 12:23:32 +02:00
parent 6968aefcc6
commit ddcd7b0a5e
3 changed files with 9 additions and 4 deletions
+4
View File
@@ -14,6 +14,10 @@ class Database
}
@chmod($dir, 0777);
if (file_exists($path)) {
@chmod($path, 0666);
}
$this->pdo = new \PDO("sqlite:$path");
$this->pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
$this->pdo->setAttribute(\PDO::ATTR_DEFAULT_FETCH_MODE, \PDO::FETCH_ASSOC);