mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-22 11:59:33 +00:00
deluge: Fix daemon user not in freedombox-share group after installation
Add the debian-deluged user to the freedombox-share group *before* running app setup. The app setup process restarts the deluged daemon after which the process has correct group ownerships. Tests done in Debian stable and testing dev containers: - After installing the deluge app, checked from /proc/--process-id--/status that the deluged daemon process has the freedombox-share group. Signed-off-by: Veiko Aasa <veiko17@disroot.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
8df60f596e
commit
631e10c09e
@ -98,6 +98,6 @@ class DelugeApp(app_module.App):
|
||||
def setup(helper, old_version=None):
|
||||
"""Install and configure the module."""
|
||||
helper.install(managed_packages)
|
||||
helper.call('post', actions.superuser_run, 'deluge', ['setup'])
|
||||
add_user_to_share_group(SYSTEM_USER)
|
||||
helper.call('post', actions.superuser_run, 'deluge', ['setup'])
|
||||
helper.call('post', app.enable)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user