mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-06 12:20:56 +01:00
Mark configuration files in debian package (#1574)
Mark server-config.xml, logging.xml and defaults explicit as configuration files. Due too a bug in gradle-ospackage-plugin it is not enough to mark them via fileType. https://github.com/nebula-plugins/gradle-ospackage-plugin/issues/118
This commit is contained in:
2
gradle/changelog/debian_conffiles.yaml
Normal file
2
gradle/changelog/debian_conffiles.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
- type: fixed
|
||||
description: Mark configuration files in debian package ([#1574](https://github.com/scm-manager/scm-manager/issues/1574))
|
||||
@@ -24,7 +24,7 @@
|
||||
import org.gradle.util.VersionNumber
|
||||
|
||||
plugins {
|
||||
id 'nebula.ospackage' version '8.4.1'
|
||||
id 'nebula.ospackage' version '8.5.6'
|
||||
id 'org.scm-manager.packaging'
|
||||
id 'com.github.hierynomus.license-base' version '0.15.0'
|
||||
}
|
||||
@@ -94,6 +94,8 @@ task deb(type: Deb) {
|
||||
permissionGroup 'scm'
|
||||
fileMode 0640
|
||||
}
|
||||
// https://github.com/nebula-plugins/gradle-ospackage-plugin/issues/118
|
||||
configurationFile('/etc/default/scm-server')
|
||||
|
||||
from('src/main/fs/etc/scm') {
|
||||
fileType CONFIG | NOREPLACE
|
||||
@@ -103,6 +105,9 @@ task deb(type: Deb) {
|
||||
fileMode 0640
|
||||
expand([version: version])
|
||||
}
|
||||
// https://github.com/nebula-plugins/gradle-ospackage-plugin/issues/118
|
||||
configurationFile('/etc/scm/server-config.xml')
|
||||
configurationFile('/etc/scm/logging.xml')
|
||||
|
||||
from('src/main/fs/etc/systemd') {
|
||||
into '/etc/systemd'
|
||||
|
||||
@@ -46,7 +46,7 @@ buildscript {
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'nebula.ospackage' version '8.4.1'
|
||||
id 'nebula.ospackage' version '8.5.6'
|
||||
id 'org.scm-manager.packaging'
|
||||
id 'com.github.hierynomus.license-base' version '0.15.0'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user