mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
refactoring
This commit is contained in:
parent
486f1be986
commit
c92d17dea2
@ -113,10 +113,9 @@ def main() -> None:
|
||||
|
||||
storage = _find_storage(target)
|
||||
_remount(storage.mount_path, rw)
|
||||
if rw:
|
||||
if storage.root_path:
|
||||
for name in dirs:
|
||||
path = os.path.join(storage.root_path, name)
|
||||
_mkdir(path)
|
||||
if storage.user:
|
||||
_chown(path, storage.user)
|
||||
if rw and storage.root_path:
|
||||
for name in dirs:
|
||||
path = os.path.join(storage.root_path, name)
|
||||
_mkdir(path)
|
||||
if storage.user:
|
||||
_chown(path, storage.user)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user