mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
samba: Fix nmb systemd service is in erroneous state
Disable and mask the nmb service, which is alias to the already disabled nmbd service. Tests performed: - Upgrading Samba app works. - Systemd doesn't show nmb.service in erroneous state after upgrade. Signed-off-by: Veiko Aasa <veiko17@disroot.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
534b0d6eb0
commit
761ee7d183
@ -41,7 +41,7 @@ class SambaApp(app_module.App):
|
||||
|
||||
app_id = 'samba'
|
||||
|
||||
_version = 5
|
||||
_version = 6
|
||||
|
||||
def __init__(self) -> None:
|
||||
"""Create components for the app."""
|
||||
|
||||
@ -291,6 +291,8 @@ def setup():
|
||||
action_utils.service_stop('nmbd')
|
||||
action_utils.service_disable('nmbd')
|
||||
action_utils.service_mask('nmbd')
|
||||
action_utils.service_disable('nmb')
|
||||
action_utils.service_mask('nmb')
|
||||
|
||||
if action_utils.service_is_running('smbd'):
|
||||
action_utils.service_restart('smbd')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user