mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
minidlna: Use single action to set media dir and restart
Style config path as constant. Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
2 files changed
+7
-6
No files matched your search
@@ -59,7 +59,6 @@ class MiniDLNAAppView(AppView):
|
||||
'minidlna',
|
||||
['set-media-dir', '--dir', new_config['media_dir']]
|
||||
)
|
||||
actions.superuser_run('service', ['restart', 'minidlna'])
|
||||
messages.success(self.request, _('Updated media directory'))
|
||||
|
||||
return super().form_valid(form)
|
||||
Reference in new issue
Block a user