dist/debian: sync packaging script with scylla main repo
This commit is contained in:
parent
c5ed83178a
commit
3618481e23
1
dist/debian/debian/scylla-jmx.service
vendored
Symbolic link
1
dist/debian/debian/scylla-jmx.service
vendored
Symbolic link
@ -0,0 +1 @@
|
||||
../../common/systemd/scylla-jmx.service
|
21
dist/debian/debian/scylla-jmx.upstart
vendored
21
dist/debian/debian/scylla-jmx.upstart
vendored
@ -1,21 +0,0 @@
|
||||
# scylla-jmx - ScyllaDB
|
||||
#
|
||||
# ScyllaDB
|
||||
|
||||
description "ScyllaDB jmx"
|
||||
|
||||
start on started scylla-server
|
||||
stop on stopping scylla-server
|
||||
|
||||
umask 022
|
||||
|
||||
console log
|
||||
|
||||
setuid scylla
|
||||
setgid scylla
|
||||
|
||||
script
|
||||
. /etc/default/scylla-jmx
|
||||
export SCYLLA_HOME SCYLLA_CONF
|
||||
exec /usr/lib/scylla/jmx/scylla-jmx -l /usr/lib/scylla/jmx
|
||||
end script
|
9
dist/debian/debian_files_gen.py
vendored
9
dist/debian/debian_files_gen.py
vendored
@ -50,10 +50,11 @@ shutil.rmtree('build/debian/debian', ignore_errors=True)
|
||||
shutil.copytree('dist/debian/debian', 'build/debian/debian')
|
||||
|
||||
if product != 'scylla':
|
||||
for p in glob.glob('build/debian/debian/scylla-*'):
|
||||
shutil.move(p, p.replace('scylla-', '{}-'.format(product)))
|
||||
|
||||
shutil.copy('dist/common/systemd/scylla-jmx.service', 'build/debian/debian/scylla-jmx.service')
|
||||
for p in Path('build/debian/debian').glob('scylla-*'):
|
||||
if str(p).endswith('scylla-jmx.service'):
|
||||
p.rename(p.parent / '{}-jmx.{}'.format(product, p.name))
|
||||
else:
|
||||
p.rename(p.parent / p.name.replace('scylla-', f'{product}-'))
|
||||
|
||||
s = DebianFilesTemplate(changelog_template)
|
||||
changelog_applied = s.substitute(product=product, version=version, release=release, revision='1', codename='stable')
|
||||
|
Loading…
x
Reference in New Issue
Block a user