message tweaks if no wrapperr

This commit is contained in:
zzz
2009-05-21 13:12:47 +00:00
parent 4426cc359c
commit d927f8bcb0
2 changed files with 9 additions and 2 deletions

View File

@ -179,7 +179,11 @@ public class UpdateHandler {
restart(); restart();
} else { } else {
_log.log(Log.CRIT, "Update was VERIFIED, will be installed at next restart"); _log.log(Log.CRIT, "Update was VERIFIED, will be installed at next restart");
_status = "<b>Update downloaded</b><br />Click Restart to Install"; _status = "<b>Update downloaded</b><br />";
if (System.getProperty("wrapper.version") != null)
_status += "Click Restart to install";
else
_status += "Click Shutdown and restart to install";
if (up.newVersion() != null) if (up.newVersion() != null)
_status += " Version " + up.newVersion(); _status += " Version " + up.newVersion();
} }

View File

@ -1029,7 +1029,10 @@ public class Router {
System.out.println("ERROR: Unable to delete the update file!"); System.out.println("ERROR: Unable to delete the update file!");
updateFile.deleteOnExit(); updateFile.deleteOnExit();
} }
System.out.println("INFO: Restarting after update"); if (System.getProperty("wrapper.version") != null)
System.out.println("INFO: Restarting after update");
else
System.out.println("WARNING: Exiting after update, restart I2P");
System.exit(EXIT_HARD_RESTART); System.exit(EXIT_HARD_RESTART);
} }
} }