Installation procedures updated

Change-Id: Ib8c1a2765be4724f18f631d4a761d9309f280579
This commit is contained in:
Nicola Peditto 2018-09-22 10:43:10 +02:00
parent 398f363cad
commit 1b20493251
5 changed files with 11 additions and 18 deletions

View File

@ -4,8 +4,8 @@ include templates/plugins.example.json
include templates/services.example.json include templates/services.example.json
include etc/systemd/system/s4t-lightning-rod.service include etc/systemd/system/s4t-lightning-rod.service
include etc/logrotate.d/lightning-rod.log include etc/logrotate.d/lightning-rod.log
include scripts/install_lr.py include scripts/lr_install
include scripts/configure_lr.py include scripts/lr_configure
include AUTHORS include AUTHORS
include ChangeLog include ChangeLog

0
scripts/configure_lr.py → scripts/lr_configure Normal file → Executable file
View File

2
scripts/install_lr.py → scripts/lr_install Normal file → Executable file
View File

@ -99,6 +99,8 @@ from subprocess import call
call(["systemctl", "enable", "lightning-rod.service"]) call(["systemctl", "enable", "lightning-rod.service"])
call(["systemctl", "daemon-reload"]) call(["systemctl", "daemon-reload"])
"""
os.system('cp ' + py_dist_pack + '/iotronic_lightningrod/scripts/' os.system('cp ' + py_dist_pack + '/iotronic_lightningrod/scripts/'
+ 'configure_lr.py /usr/bin/configure_lr') + 'configure_lr.py /usr/bin/configure_lr')
os.chmod('/usr/bin/configure_lr', 0o744) os.chmod('/usr/bin/configure_lr', 0o744)
"""

View File

@ -21,6 +21,13 @@ classifier =
[files] [files]
packages = packages =
iotronic_lightningrod iotronic_lightningrod
data_files =
bin/ = scripts/*
/iotronic_lightningrod/templates = templates/*
/iotronic_lightningrod/etc/iotronic = etc/iotronic/iotronic.conf
/iotronic_lightningrod/etc/logrotate.d = etc/logrotate.d/lightning-rod.log
/iotronic_lightningrod/etc/systemd/system = etc/systemd/system/s4t-lightning-rod.service
[build_sphinx] [build_sphinx]
source-dir = doc/source source-dir = doc/source

View File

@ -28,20 +28,4 @@ setuptools.setup(
setup_requires=['pbr>=1.8'], setup_requires=['pbr>=1.8'],
pbr=True, pbr=True,
include_package_data=True, include_package_data=True,
data_files=[
('/iotronic_lightningrod/etc/iotronic',
['etc/iotronic/iotronic.conf']),
('/iotronic_lightningrod/scripts', ['scripts/install_lr.py']),
('/iotronic_lightningrod/scripts', ['scripts/configure_lr.py']),
('/iotronic_lightningrod/templates',
['templates/settings.example.json']),
('/iotronic_lightningrod/templates',
['templates/plugins.example.json']),
('/iotronic_lightningrod/templates',
['templates/services.example.json']),
('/iotronic_lightningrod/etc/logrotate.d',
['etc/logrotate.d/lightning-rod.log']),
('/iotronic_lightningrod/etc/systemd/system/',
['etc/systemd/system/s4t-lightning-rod.service']),
],
) )