forked from stove/risotto
better config change detection
This commit is contained in:
parent
8895c3ee9e
commit
14a2cc65f9
1 changed files with 19 additions and 10 deletions
|
@ -30,6 +30,15 @@ def fileslist(data, is_host=False, name_only=False, prefix=None):
|
||||||
prefix,
|
prefix,
|
||||||
)
|
)
|
||||||
for service, service_data in data.items():
|
for service, service_data in data.items():
|
||||||
|
if not service_data['activate']:
|
||||||
|
if service_data['engine'] == 'none' and service_data['type'] == 'service' and not 'overrides' in service_data:
|
||||||
|
_add(files,
|
||||||
|
{'owner': 'root', 'group': 'root', 'mode': '0755'},
|
||||||
|
base_systemd + '/systemd/system/' + service_data['doc'],
|
||||||
|
name_only,
|
||||||
|
prefix,
|
||||||
|
)
|
||||||
|
else:
|
||||||
if service_data['activate'] and service_data['engine'] != 'none':
|
if service_data['activate'] and service_data['engine'] != 'none':
|
||||||
_add(files,
|
_add(files,
|
||||||
{'owner': 'root', 'group': 'root', 'mode': '0755'},
|
{'owner': 'root', 'group': 'root', 'mode': '0755'},
|
||||||
|
|
Loading…
Reference in a new issue