mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Also check we can touch the filesystem in healthcheck
This commit is contained in:
parent
973a18b1b8
commit
40a171d44a
1 changed files with 4 additions and 0 deletions
|
@ -266,6 +266,10 @@ public class Bridge {
|
|||
public boolean healthCheck() {
|
||||
try {
|
||||
dbStore.getNumProjects();
|
||||
File rootDirectory = new File("/");
|
||||
if (!rootDirectory.exists()) {
|
||||
throw new Exception("bad filesystem state, root directory does not exist");
|
||||
}
|
||||
Log.error("[HealthCheck] passed");
|
||||
return true;
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in a new issue