Skip to content

Commit 6b4bb6d

Browse files
committed
Add in docker detection method
1 parent a1d069d commit 6b4bb6d

File tree

1 file changed

+3
-3
lines changed
  • commons-launcher/commons-launcher-bootstrap/src/main/java/io/onedev/commons/launcher/bootstrap

1 file changed

+3
-3
lines changed

commons-launcher/commons-launcher-bootstrap/src/main/java/io/onedev/commons/launcher/bootstrap/Bootstrap.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,13 +309,13 @@ public static File getTempDir() {
309309
public static File getConfDir() {
310310
return new File(installDir, "conf");
311311
}
312-
312+
313313
public static File getSiteDir() {
314314
return new File(installDir, "site");
315315
}
316316

317-
public static File getPluginsDir() {
318-
return new File(installDir, "plugins");
317+
public static boolean isInDocker() {
318+
return new File(installDir, "IN_DOCKER").exists();
319319
}
320320

321321
}

0 commit comments

Comments
 (0)