vanagon 0.15.5 → 0.15.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/resources/rpm/project.spec.erb +25 -6
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e5a83822020767811cd2c7b42d16b094752b1c9f
|
|
4
|
+
data.tar.gz: ec3e49e59648f42c731ad2a0e96d0ee954b23816
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 62f44cecb7fa71043ac71cde7f64fb5b8b1c74fed0f05392e9b9b683762c73c7af7afae99d46c15622eac31259a8bacf1b03686eacbeff65ff2ae4e274025ebc
|
|
7
|
+
data.tar.gz: 588443a7cbc72940736c2964b15e8da0dc61d90c23e7a009dd8ac1ca0c5a2a6c6f75e8228436a6e7ae9985943b4a6657f773d3a6fd537828c41af39c7f12ed4f
|
|
@@ -194,6 +194,14 @@ if [ "$1" -gt 1 ] ; then
|
|
|
194
194
|
<%= get_preinstall_actions("upgrade") %>
|
|
195
195
|
fi
|
|
196
196
|
|
|
197
|
+
<%- if @platform.is_aix? -%>
|
|
198
|
+
<%- get_services.each do |service| -%>
|
|
199
|
+
# Stop service on upgrade so that it can be restarted at the end
|
|
200
|
+
if [ "$1" -gt 1 ] ; then
|
|
201
|
+
/usr/bin/stopsrc -s <%= service.name -%> > /dev/null 2>&1 || :
|
|
202
|
+
fi
|
|
203
|
+
<%- end -%>
|
|
204
|
+
<%- end -%>
|
|
197
205
|
|
|
198
206
|
<%- get_all_trigger_pkgs.each do |pkg| %>
|
|
199
207
|
|
|
@@ -218,11 +226,6 @@ fi
|
|
|
218
226
|
if [ "$1" -eq 1 ] ; then
|
|
219
227
|
<%= get_postinstall_actions("install") %>
|
|
220
228
|
fi
|
|
221
|
-
|
|
222
|
-
# Run postinstall scripts on upgrade if defined
|
|
223
|
-
if [ "$1" -eq 2 ] ; then
|
|
224
|
-
<%= get_postinstall_actions("upgrade") %>
|
|
225
|
-
fi
|
|
226
229
|
<%- end -%>
|
|
227
230
|
<%- get_services.each do |service| -%>
|
|
228
231
|
# switch based on systemd vs systemv vs smf vs aix
|
|
@@ -248,6 +251,19 @@ fi
|
|
|
248
251
|
<%- end -%>
|
|
249
252
|
<%- end -%>
|
|
250
253
|
|
|
254
|
+
%triggerpostun -- <%= @name %>
|
|
255
|
+
<%- if @platform.is_aix? || (@platform.is_el? && @platform.os_version.to_i == 4) -%>
|
|
256
|
+
# old versions of vanagon generated an unconditional service stop in
|
|
257
|
+
# the preun. This means that postinstall actions that mess with the
|
|
258
|
+
# service need to be run AFTER that step. To do so, we can run them
|
|
259
|
+
# in the "triggerpostun" when an upgrade is happening.
|
|
260
|
+
|
|
261
|
+
# Run postinstall scripts on upgrade if defined
|
|
262
|
+
if [ "$2" -gt 0 ] ; then
|
|
263
|
+
<%= get_postinstall_actions("upgrade") %>
|
|
264
|
+
fi
|
|
265
|
+
<%- end -%>
|
|
266
|
+
|
|
251
267
|
|
|
252
268
|
%postun
|
|
253
269
|
# Run post-uninstall scripts on upgrade if defined
|
|
@@ -306,7 +322,10 @@ fi
|
|
|
306
322
|
chkconfig --del <%= service.name %> || :
|
|
307
323
|
fi
|
|
308
324
|
<%- elsif @platform.servicetype == "aix" -%>
|
|
309
|
-
|
|
325
|
+
# stop the service only on a real uninstall, not on upgrades
|
|
326
|
+
if [ "$1" -eq 0 ] ; then
|
|
327
|
+
/usr/bin/stopsrc -s <%= service.name -%> > /dev/null 2>&1 || :
|
|
328
|
+
fi
|
|
310
329
|
<%- end -%>
|
|
311
330
|
<%- end -%>
|
|
312
331
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vanagon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.15.
|
|
4
|
+
version: 0.15.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Puppet Labs
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-03-
|
|
11
|
+
date: 2018-03-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: git
|