Skip to content
Browse files
[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 6cbcaf9da22f1a0481d7baec069a2935e7e28a14
Showing with 4 additions and 0 deletions.
  1. +4 −0 rpm/build/SPECS/jenkins.spec
@@ -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
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

0 comments on commit 6cbcaf9

Please sign in to comment.