Skip to content
This repository was archived by the owner on Dec 18, 2022. It is now read-only.

Commit cc450d6

Browse files
committed
make setup() more modular with setupTorExecutable()
1 parent b8f92af commit cc450d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

java/src/main/java/com/msopentech/thali/java/toronionproxy/JavaTorInstaller.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,14 @@ public void setup() throws IOException {
7777
LOG.info("Installing resources: geoip=" + config.getGeoIpFile().getAbsolutePath());
7878
cleanInstallOneFile(getAssetOrResourceByName(TorConfig.GEO_IP_NAME), config.getGeoIpFile());
7979
cleanInstallOneFile(getAssetOrResourceByName(TorConfig.GEO_IPV_6_NAME), config.getGeoIpv6File());
80+
setupTorExecutable();
81+
}
8082

83+
protected void setupTorExecutable() throws IOException {
8184
LOG.info("Installing tor executable: " + config.getTorExecutableFile().getAbsolutePath());
8285
File torParent = config.getTorExecutableFile().getParentFile();
8386
extractContentFromZip(torParent.exists() ? torParent : config.getTorExecutableFile(),
8487
getAssetOrResourceByName(getPathToTorExecutable() + "tor.zip"));
85-
8688
setPerms(config.getTorExecutableFile());
8789
}
8890

0 commit comments

Comments
 (0)