Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-23273] Remove hudson default update site before migrating
If it is not removed a message may appear saying that a new version of
jenkins is available with a Hudson version and download url
  • Loading branch information
raul-arabaolaza committed Dec 30, 2016
1 parent 02d2c3d commit 6cbcaf9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rpm/build/SPECS/jenkins.spec
Expand Up @@ -85,6 +85,10 @@ if test -d /var/lib/hudson; then
# could be useful down the road
# This also ensures that the .??* wildcard matches something
touch /var/lib/hudson/.moving-hudson
# remove the hudson default update site to prevent it to be used by jenkins
if test -e /var/lib/hudson/updates/default.json; then
rm /var/lib/hudson/updates/default.json
fi
mv -f /var/lib/hudson/* /var/lib/hudson/.??* /var/lib/%{name}
rmdir /var/lib/hudson
find /var/lib/%{name} -user hudson -exec chown %{name} {} + || true
Expand Down

0 comments on commit 6cbcaf9

Please sign in to comment.