allow kvmd to edit msd params

This commit is contained in:
Devaev Maxim
2019-10-24 00:21:07 +03:00
parent af1e09067b
commit 372bf2a4af
4 changed files with 73 additions and 25 deletions

View File

@@ -74,7 +74,7 @@ def _remount(path: str, rw: bool) -> None:
def _mkdir(path: str) -> None:
if not os.path.exists(path):
_log(f"MKDIR {path} ...")
_log(f"MKDIR --- {path}")
try:
os.mkdir(path)
except Exception as err:
@@ -82,7 +82,7 @@ def _mkdir(path: str) -> None:
def _chown(path: str, user: str) -> None:
_log(f"CHOWN {user} {path} ...")
_log(f"CHOWN --- {user} - {path}")
try:
shutil.chown(path, user)
except Exception as err: