run sysctl after installation

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Nektarios Katakis authored and James Valleroy committed 2019-12-08 14:50:16 -05:00
1 parent 31c35e961c
commit b5fb23e448
1 file changed
+3
+3
View File
@@ -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"""