mirror of
https://github.com/open-webui/open-terminal.git
synced 2026-12-02 09:47:48 -05:00
Replace all subprocess-based writes (sudo tee, mkdir -p, rm -rf, mv) with native Python I/O. The only subprocess left is 'sudo chown' for ownership fixup after writes. - chmod 2770 (setgid + group rwx) on home dirs so native writes work - write/write_bytes: aiofiles.open + chown - mkdir: os.makedirs + chown - remove: shutil.rmtree / os.remove (no chown needed) - move: shutil.move + chown