Index: config.php
--- config.php.orig
+++ config.php
@@ -18,7 +18,7 @@ define('DAV_ROOT_URI', '/dav/');
 
 // Database of the GAL cache (PDO syntax). The sync state is kept in the
 // hidden folder "GD-SyncState" in the store of each user.
-define('SYNC_DB', 'sqlite:/var/lib/grommunio-dav/syncstate.db');
+define('SYNC_DB', 'sqlite:' . GTOPDIR . '/cache/syncstate.db');
 
 // Number of items to send in one request.
 define('MAX_SYNC_ITEMS', 1000);
