mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
(control-service) Use default value for WMSA_HOME if it is not set
This commit is contained in:
parent
15912f31d0
commit
46df58d28b
@ -9,7 +9,7 @@ import java.nio.file.Path;
|
|||||||
public class ControlProcessModule extends AbstractModule {
|
public class ControlProcessModule extends AbstractModule {
|
||||||
@Override
|
@Override
|
||||||
protected void configure() {
|
protected void configure() {
|
||||||
String dist = System.getProperty("distPath", System.getProperty("WMSA_HOME") + "/dist/current");
|
String dist = System.getProperty("distPath", System.getProperty("WMSA_HOME", "/var/lib/wmsa") + "/dist/current");
|
||||||
bind(Path.class).annotatedWith(Names.named("distPath")).toInstance(Path.of(dist));
|
bind(Path.class).annotatedWith(Names.named("distPath")).toInstance(Path.of(dist));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user