Merge branch 'stable-2.16' into stable-3.0
* stable-2.16: InitContainer: Do not copy if init is run from siteWar Change-Id: Ie1f154659d5b7750273b50c85277d603c6d3cc8b
This commit is contained in:
commit
28c352e64a
@ -75,7 +75,11 @@ class InitContainer implements InitStep {
|
||||
final boolean copy;
|
||||
final Path siteWar = site.gerrit_war;
|
||||
if (Files.exists(siteWar)) {
|
||||
copy = ui.yesno(true, "Upgrade %s", siteWar);
|
||||
if (Files.isSameFile(siteWar, myWar)) {
|
||||
copy = false;
|
||||
} else {
|
||||
copy = ui.yesno(true, "Upgrade %s", siteWar);
|
||||
}
|
||||
} else {
|
||||
copy = ui.yesno(true, "Copy %s to %s", myWar.getFileName(), siteWar);
|
||||
if (copy) {
|
||||
|
Loading…
Reference in New Issue
Block a user