File tree 3 files changed +55
-1
lines changed
3 files changed +55
-1
lines changed Original file line number Diff line number Diff line change 79
79
to pants' use of PEX lockfiles. This is not a user-facing addition.
80
80
#6118 #6141 #6133 #6120 #6181 #6183 #6200 #6237 #6229 #6240 #6241 #6244 #6251 #6253
81
81
#6254 #6258 #6259 #6260 #6269 #6275 #6279 #6278 #6282 #6283 #6273 #6287 #6306 #6307
82
- #6311 #6314 #6315 #6317 #6319 #6312
82
+ #6311 #6314 #6315 #6317 #6319 #6312 #6320
83
83
Contributed by @cognifloyd
84
84
* Build of ST2 EL9 packages #6153
85
85
Contributed by @amanda11
Original file line number Diff line number Diff line change @@ -29,6 +29,15 @@ set -e
29
29
# https://www.mankier.com/5/deb-triggers
30
30
# https://stackoverflow.com/questions/15276535/dpkg-how-to-use-trigger
31
31
32
+ # The default set of packs installed with st2.
33
+ _ST2_PACKS="
34
+ chatops
35
+ core
36
+ default
37
+ linux
38
+ packs
39
+ "
40
+
32
41
# This must include ".service" to satisfy deb-systemd-{helper,invoke}
33
42
_ST2_SERVICES="
34
43
st2actionrunner.service
@@ -83,8 +92,26 @@ systemd_enable_and_restart() {
83
92
fi
84
93
}
85
94
95
+ rebuild_st2_venv () {
96
+ /opt/stackstorm/install/st2.pex
97
+ }
98
+
99
+ extract_st2_pack () {
100
+ pack=${1}
101
+ shift
102
+ # shellcheck disable=SC2209
103
+ PAGER=cat /opt/stackstorm/install/packs/" ${pack} " .tgz.run --quiet --accept " ${@ } "
104
+ }
105
+
86
106
case " $1 " in
87
107
configure)
108
+ # Fail install if venv build or pack extraction fails
109
+ rebuild_st2_venv || exit $?
110
+ for pack in ${_ST2_PACKS} ; do
111
+ extract_st2_pack " ${pack} " || exit $?
112
+ done
113
+ extract_st2_pack examples --target /usr/share/doc/st2/examples || :
114
+
88
115
# shellcheck disable=SC2086
89
116
systemd_enable_and_restart ${_ST2_SERVICES}
90
117
;;
Original file line number Diff line number Diff line change 7
7
# * on upgrade: $1 > 1
8
8
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_syntax
9
9
10
+ # The default set of packs installed with st2.
11
+ _ST2_PACKS="
12
+ chatops
13
+ core
14
+ default
15
+ linux
16
+ packs
17
+ "
18
+
10
19
_ST2_SERVICES="
11
20
st2actionrunner
12
21
st2api
@@ -21,6 +30,24 @@ st2timersengine
21
30
st2workflowengine
22
31
"
23
32
33
+ rebuild_st2_venv () {
34
+ /opt/stackstorm/install/st2.pex
35
+ }
36
+
37
+ extract_st2_pack () {
38
+ pack=${1}
39
+ shift
40
+ # shellcheck disable=SC2209
41
+ PAGER=cat /opt/stackstorm/install/packs/" ${pack} " .tgz.run --quiet --accept " ${@ } "
42
+ }
43
+
44
+ # Fail install if venv build or pack extraction fails
45
+ rebuild_st2_venv || exit $?
46
+ for pack in ${_ST2_PACKS} ; do
47
+ extract_st2_pack " ${pack} " || exit $?
48
+ done
49
+ extract_st2_pack examples --target /usr/share/doc/st2/examples || :
50
+
24
51
# Native .rpm specs use macros that get expanded into shell snippets.
25
52
# We are using nfpm, so we inline the macro expansion here.
26
53
# %systemd_post
You can’t perform that action at this time.
0 commit comments