mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Use SQLITE3_OPEN_READONLY rather than SQLITE3_OPEN_READWRITE
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ function SQLite3_connect($trytoreconnect)
|
||||
{
|
||||
try {
|
||||
// connect to database
|
||||
return new SQLite3('/etc/pihole/pihole-FTL.db', SQLITE3_OPEN_READWRITE);
|
||||
return new SQLite3('/etc/pihole/pihole-FTL.db', SQLITE3_OPEN_READONLY);
|
||||
}
|
||||
catch (Exception $exception) {
|
||||
// sqlite3 throws an exception when it is unable to connect, try to reconnect after 3 seconds
|
||||
|
||||
Reference in New Issue
Block a user