This is an automated email from the ASF dual-hosted git repository.

mpochatkin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


The following commit(s) were added to refs/heads/main by this push:
     new ceabd2e4e27 IGNITE-25442 RPM distribution should mark config files as 
such (#5867)
ceabd2e4e27 is described below

commit ceabd2e4e27f7520704158cd2e4b486317adfeaf
Author: Vadim Pakhnushev <[email protected]>
AuthorDate: Wed May 21 18:14:45 2025 +0300

    IGNITE-25442 RPM distribution should mark config files as such (#5867)
---
 packaging/db/build.gradle | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/packaging/db/build.gradle b/packaging/db/build.gradle
index 2eed225393e..43d117b18aa 100644
--- a/packaging/db/build.gradle
+++ b/packaging/db/build.gradle
@@ -33,6 +33,7 @@ java {
 
 import org.apache.tools.ant.filters.ReplaceTokens
 import org.gradle.crypto.checksum.Checksum
+import org.redline_rpm.payload.Directive
 
 configurations {
     dbArtifacts
@@ -266,11 +267,11 @@ ospackage {
         from("$buildDir/linux/service/vars.env")
         from "$buildDir/linux/ignite.java.util.logging.properties"
         from generateConfigDefaults
-        from createVersionFile
-        from sourceSets.main.resources
 
         fileMode 0660
+        fileType Directive.CONFIG
 
+        // TODO 
https://github.com/nebula-plugins/gradle-ospackage-plugin/issues/463
         eachFile {
             def configFile = "${packageTokens.CONF_DIR}/${it.getName()}"
 
@@ -280,6 +281,14 @@ ospackage {
         }
     }
 
+    // These are not config files, don't mark them as such so they are 
overwritten on upgrade
+    into(packageTokens.CONF_DIR) {
+        from createVersionFile
+        from sourceSets.main.resources
+
+        fileMode 0660
+    }
+
     into(packageTokens.INSTALL_DIR) {
         into('') {
             from "$buildDir/linux/service/ignite3db.service"

Reply via email to