Skip to content

Commit

Permalink
Support disabling systemd timers
Browse files Browse the repository at this point in the history
  • Loading branch information
jgleissner committed Jun 6, 2024
1 parent d1b2292 commit 05c90ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kiwi_keg/script_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def get_services_section(service_items: Dict, ns: str) -> str:
service_name = item['name']
enable = item['enable']
if service_name.endswith('timer') or service_name.endswith('target'):
content += 'systemctl enable {}\n'.format(service_name)
content += 'systemctl {} {}\n'.format('enable' if enable else 'disable', service_name)
else:
if enable:
content += 'baseInsertService {}\n'.format(service_name)
Expand Down

0 comments on commit 05c90ef

Please sign in to comment.