mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +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
|
import argparse
|
||||||
from tempfile import mkstemp
|
from tempfile import mkstemp
|
||||||
from shutil import move
|
from shutil import move
|
||||||
|
import subprocess
|
||||||
from os import fdopen, remove, chmod, stat
|
from os import fdopen, remove, chmod, stat
|
||||||
|
|
||||||
import augeas
|
import augeas
|
||||||
@ -61,6 +62,8 @@ def subcommand_setup(arguments):
|
|||||||
aug.set('/files/etc/sysctl.conf/fs.inotify.max_user_watches', '100000')
|
aug.set('/files/etc/sysctl.conf/fs.inotify.max_user_watches', '100000')
|
||||||
aug.save()
|
aug.save()
|
||||||
|
|
||||||
|
subprocess.run(['sysctl', '--system'], check=True)
|
||||||
|
|
||||||
|
|
||||||
def subcommand_get_media_dir(arguments):
|
def subcommand_get_media_dir(arguments):
|
||||||
"""Retrieve media directory from minidlna.conf"""
|
"""Retrieve media directory from minidlna.conf"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user