Tor config was not being installed for fresh installs.

This commit is contained in:
akwizgran
2014-04-05 20:05:08 +01:00
parent 839f67dd44
commit 6a0e7f8add

View File

@@ -235,8 +235,6 @@ class TorPlugin implements DuplexPlugin, EventHandler {
LOG.warning("Could not make Tor executable"); LOG.warning("Could not make Tor executable");
return false; return false;
} }
// Create a file to indicate that installation succeeded
doneFile.createNewFile();
return true; return true;
} catch(IOException e) { } catch(IOException e) {
if(LOG.isLoggable(WARNING)) LOG.log(WARNING, e.toString(), e); if(LOG.isLoggable(WARNING)) LOG.log(WARNING, e.toString(), e);
@@ -247,7 +245,7 @@ class TorPlugin implements DuplexPlugin, EventHandler {
} }
private boolean isConfigInstalled() { private boolean isConfigInstalled() {
return doneFile.exists(); return geoIpFile.exists() && configFile.exists() && doneFile.exists();
} }
private boolean installConfig() { private boolean installConfig() {