mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
run sysctl after installation
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
31c35e961c
commit
b5fb23e448
@ -21,6 +21,7 @@ Configuration actions for the minidlna server.
|
||||
import argparse
|
||||
from tempfile import mkstemp
|
||||
from shutil import move
|
||||
import subprocess
|
||||
from os import fdopen, remove, chmod, stat
|
||||
|
||||
import augeas
|
||||
@ -61,6 +62,8 @@ def subcommand_setup(arguments):
|
||||
aug.set('/files/etc/sysctl.conf/fs.inotify.max_user_watches', '100000')
|
||||
aug.save()
|
||||
|
||||
subprocess.run(['sysctl', '--system'], check=True)
|
||||
|
||||
|
||||
def subcommand_get_media_dir(arguments):
|
||||
"""Retrieve media directory from minidlna.conf"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user