@@ -357,6 +357,13 @@ configure(subprojects.findAll { ['archives', 'packages'].contains(it.name) }) {
357
357
}
358
358
}
359
359
360
+ versionFile = {
361
+ copySpec {
362
+ from(rootProject. file(' VERSION' ))
363
+ fileMode 0644
364
+ }
365
+ }
366
+
360
367
modulesFiles = { platform ->
361
368
copySpec {
362
369
eachFile {
@@ -523,27 +530,27 @@ configure(subprojects.findAll { ['archives', 'packages'].contains(it.name) }) {
523
530
* <dt >path.conf</dt>
524
531
* <dd >The default directory from which to load configuration. This is used in
525
532
* the packaging scripts, but in that context it is always
526
- * /etc/opensearch . Its also used in bin/opensearch-plugin, where it is
527
- * /etc/opensearch for the os packages but $OPENSEARCH_HOME/config otherwise.</dd>
533
+ * /etc/wazuh-indexer . Its also used in bin/opensearch-plugin, where it is
534
+ * /etc/wazuh-indexer for the os packages but $OPENSEARCH_HOME/config otherwise.</dd>
528
535
* <dt >path.env</dt>
529
536
* <dd >The env file sourced before bin/opensearch to set environment
530
- * variables. Think /etc/defaults/opensearch .</dd>
537
+ * variables. Think /etc/defaults/wazuh-indexer .</dd>
531
538
* <dt >heap.min and heap.max</dt>
532
539
* <dd >Default min and max heap</dd>
533
540
* <dt >scripts.footer</dt>
534
541
* <dd >Footer appended to control scripts embedded in the distribution that is
535
542
* (almost) entirely there for cosmetic reasons.</dd>
536
543
* <dt >stopping.timeout</dt>
537
- * <dd >RPM's init script needs to wait for opensearch to stop before
544
+ * <dd >RPM's init script needs to wait for wazuh-indexer to stop before
538
545
* returning from stop and it needs a maximum time to wait. This is it. One
539
546
* day. DEB retries forever.</dd>
540
547
* </dl>
541
548
*/
542
549
subprojects {
543
550
ext. expansionsForDistribution = { distributionType , jdk ->
544
551
final String defaultHeapSize = " 1g"
545
- final String packagingPathData = " path.data: /var/lib/opensearch "
546
- final String pathLogs = " /var/log/opensearch "
552
+ final String packagingPathData = " path.data: /var/lib/wazuh-indexer "
553
+ final String pathLogs = " /var/log/wazuh-indexer "
547
554
final String packagingPathLogs = " path.logs: ${ pathLogs} "
548
555
final String packagingLoggc = " ${ pathLogs} /gc.log"
549
556
@@ -558,8 +565,8 @@ subprojects {
558
565
' project.version' : version,
559
566
560
567
' path.conf' : [
561
- ' deb' : ' /etc/opensearch ' ,
562
- ' rpm' : ' /etc/opensearch ' ,
568
+ ' deb' : ' /etc/wazuh-indexer ' ,
569
+ ' rpm' : ' /etc/wazuh-indexer ' ,
563
570
' def' : ' "$OPENSEARCH_HOME"/config'
564
571
],
565
572
' path.data' : [
@@ -568,15 +575,15 @@ subprojects {
568
575
' def' : ' #path.data: /path/to/data'
569
576
],
570
577
' path.env' : [
571
- ' deb' : ' /etc/default/opensearch ' ,
572
- ' rpm' : ' /etc/sysconfig/opensearch ' ,
578
+ ' deb' : ' /etc/default/wazuh-indexer ' ,
579
+ ' rpm' : ' /etc/sysconfig/wazuh-indexer ' ,
573
580
/* There isn't one of these files for tar or zip but its important to
574
581
make an empty string here so the script can properly skip it. */
575
582
' def' : ' if [ -z "$OPENSEARCH_PATH_CONF" ]; then OPENSEARCH_PATH_CONF="$OPENSEARCH_HOME"/config; done' ,
576
583
],
577
584
' source.path.env' : [
578
- ' deb' : ' source /etc/default/opensearch ' ,
579
- ' rpm' : ' source /etc/sysconfig/opensearch ' ,
585
+ ' deb' : ' source /etc/default/wazuh-indexer ' ,
586
+ ' rpm' : ' source /etc/sysconfig/wazuh-indexer ' ,
580
587
' def' : ' if [ -z "$OPENSEARCH_PATH_CONF" ]; then OPENSEARCH_PATH_CONF="$OPENSEARCH_HOME"/config; fi' ,
581
588
],
582
589
' path.logs' : [
@@ -594,14 +601,14 @@ subprojects {
594
601
' heap.max' : defaultHeapSize,
595
602
596
603
' heap.dump.path' : [
597
- ' deb' : " -XX:HeapDumpPath=/var/lib/opensearch " ,
598
- ' rpm' : " -XX:HeapDumpPath=/var/lib/opensearch " ,
604
+ ' deb' : " -XX:HeapDumpPath=/var/lib/wazuh-indexer " ,
605
+ ' rpm' : " -XX:HeapDumpPath=/var/lib/wazuh-indexer " ,
599
606
' def' : " -XX:HeapDumpPath=data"
600
607
],
601
608
602
609
' error.file' : [
603
- ' deb' : " -XX:ErrorFile=/var/log/opensearch /hs_err_pid%p.log" ,
604
- ' rpm' : " -XX:ErrorFile=/var/log/opensearch /hs_err_pid%p.log" ,
610
+ ' deb' : " -XX:ErrorFile=/usr/share/wazuh-indexer /hs_err_pid%p.log" ,
611
+ ' rpm' : " -XX:ErrorFile=/usr/share/wazuh-indexer /hs_err_pid%p.log" ,
605
612
' def' : " -XX:ErrorFile=logs/hs_err_pid%p.log"
606
613
],
607
614
0 commit comments