mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
On RPM/DEB/etc installation, don't offer the self upgrade. It should be done by the native package manager.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28479 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
5b437679a1
commit
1eb72ace8d
1 file changed
+2
-1
@@ -147,7 +147,8 @@ public abstract class Lifecycle implements ExtensionPoint {
|
||||
*/
|
||||
public boolean canRewriteHudsonWar() {
|
||||
// if we don't know where hudson.war is, it's impossible to replace.
|
||||
return getHudsonWar()!=null;
|
||||
File f = getHudsonWar();
|
||||
return f!=null && f.canWrite();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user