mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
- Use two separate strategies: one to symlink from /etc to files in /usr/ and two to copy files from /usr to /etc. The latter is needed for some rare cases where symlinks don't work because the daemon runs in a chrooted environment. - Update tutorial and reference sections in developer documentation. Tests: - Unit tests works and are comprehensive. - Using the component in apps works. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
16 lines
691 B
Python
16 lines
691 B
Python
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
"""Package holding all the privileged actions outside of apps."""
|
|
|
|
from .config import dropin_link, dropin_unlink
|
|
from .packages import (filter_conffile_packages, install,
|
|
is_package_manager_busy, remove, update)
|
|
from .service import (disable, enable, is_enabled, is_running, mask, reload,
|
|
restart, start, stop, try_restart, unmask)
|
|
|
|
__all__ = [
|
|
'filter_conffile_packages', 'install', 'is_package_manager_busy', 'remove',
|
|
'update', 'disable', 'enable', 'is_enabled', 'is_running', 'mask',
|
|
'reload', 'restart', 'start', 'stop', 'try_restart', 'unmask',
|
|
'dropin_link', 'dropin_unlink'
|
|
]
|