Browse Source

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

Jenkins 3 years ago
parent
commit
37a853db60
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      fuel_plugin_builder/templates/v3/build/plugin_rpm.spec.mako

+ 8
- 1
fuel_plugin_builder/templates/v3/build/plugin_rpm.spec.mako View File

@@ -44,7 +44,14 @@ ${ preinstall_hook }
44 44
 ${ postinstall_hook }
45 45
 
46 46
 %%preun
47
-${ uninstall_hook }
47
+# Values of $1:
48
+# install:      (N/A)
49
+# upgrade:      1
50
+# uninstall:    0
51
+if [ $1 -eq 0 ]; then
52
+    ${ uninstall_hook }
53
+fi
54
+
48 55
 
49 56
 %%files
50 57
 /var/www/nailgun/plugins/${ name }

Loading…
Cancel
Save