@@ -165,6 +165,13 @@ function add_configuration_files() {
165
165
find . -name " *.bat" -exec rm -rf {} \;
166
166
}
167
167
168
+ # ====
169
+ # Remove unneeded files
170
+ # ====
171
+ function remove_unneeded_files() {
172
+ rm " $PATH_PLUGINS /opensearch-security/tools/install_demo_configuration.sh"
173
+ }
174
+
168
175
# ====
169
176
# Copy performance analyzer service file
170
177
# ====
@@ -212,6 +219,7 @@ function assemble_tar() {
212
219
cd " ${TMP_DIR} "
213
220
PATH_CONF=" ./config"
214
221
PATH_BIN=" ./bin"
222
+ PATH_PLUGINS=" ./plugins"
215
223
216
224
# Extract
217
225
echo " Extract ${ARTIFACT_BUILD_NAME} archive"
@@ -222,6 +230,7 @@ function assemble_tar() {
222
230
install_plugins
223
231
# Swap configuration files
224
232
add_configuration_files
233
+ remove_unneeded_files
225
234
226
235
# Pack
227
236
archive_name=" wazuh-indexer-$( cat VERSION) "
@@ -246,6 +255,7 @@ function assemble_rpm() {
246
255
local src_path=" ./usr/share/wazuh-indexer"
247
256
PATH_CONF=" ./etc/wazuh-indexer"
248
257
PATH_BIN=" ${src_path} /bin"
258
+ PATH_PLUGINS=" ${src_path} /plugins"
249
259
250
260
# Extract min-package. Creates usr/, etc/ and var/ in the current directory
251
261
echo " Extract ${ARTIFACT_BUILD_NAME} archive"
@@ -256,6 +266,7 @@ function assemble_rpm() {
256
266
enable_performance_analyzer_rca ${src_path}
257
267
# Swap configuration files
258
268
add_configuration_files
269
+ remove_unneeded_files
259
270
260
271
# Generate final package
261
272
local topdir
@@ -295,6 +306,7 @@ function assemble_deb() {
295
306
local src_path=" ./usr/share/wazuh-indexer"
296
307
PATH_CONF=" ./etc/wazuh-indexer"
297
308
PATH_BIN=" ${src_path} /bin"
309
+ PATH_PLUGINS=" ${src_path} /plugins"
298
310
299
311
# Extract min-package. Creates usr/, etc/ and var/ in the current directory
300
312
echo " Extract ${ARTIFACT_BUILD_NAME} archive"
@@ -306,6 +318,7 @@ function assemble_deb() {
306
318
enable_performance_analyzer_rca ${src_path}
307
319
# Swap configuration files
308
320
add_configuration_files
321
+ remove_unneeded_files
309
322
310
323
# Generate final package
311
324
local version
@@ -321,7 +334,7 @@ function assemble_deb() {
321
334
322
335
# Move to the root folder, copy the package and clean.
323
336
cd ../../..
324
- package_name=" wazuh-indexer_${version} _${SUFFIX} .${EXT} "
337
+ package_name=" wazuh-indexer_${version} _${SUFFIX} .${EXT} "
325
338
# debmake creates the package one level above
326
339
cp " ${TMP_DIR} /../${package_name} " " ${OUTPUT} /dist/$ARTIFACT_PACKAGE_NAME "
327
340
@@ -338,9 +351,7 @@ function main() {
338
351
339
352
ARTIFACT_BUILD_NAME=$( ls " ${OUTPUT} /dist/" | grep " wazuh-indexer-min_.*$SUFFIX .*\.$EXT " )
340
353
341
- ARTIFACT_PACKAGE_NAME=${ARTIFACT_BUILD_NAME/ min_/ }
342
-
343
-
354
+ ARTIFACT_PACKAGE_NAME=${ARTIFACT_BUILD_NAME/ min_/ }
344
355
345
356
# Create temporal directory and copy the min package there for extraction
346
357
TMP_DIR=" ${OUTPUT} /tmp/${TARGET} "
0 commit comments