Merge "We shouldn't execute uninstall.sh on plugin upgrade"

This commit is contained in:
Jenkins 2016-04-08 13:19:26 +00:00 committed by Gerrit Code Review
commit 37a853db60
1 changed files with 8 additions and 1 deletions

View File

@ -44,7 +44,14 @@ ${ preinstall_hook }
${ postinstall_hook }
%%preun
${ uninstall_hook }
# Values of $1:
# install: (N/A)
# upgrade: 1
# uninstall: 0
if [ $1 -eq 0 ]; then
${ uninstall_hook }
fi
%%files
/var/www/nailgun/plugins/${ name }