mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
refactor: change dir permissions.
This commit is contained in:
parent
49e52aa53c
commit
d6a3a3cf1f
|
|
@ -51,7 +51,8 @@ class ToolExecutor:
|
||||||
try:
|
try:
|
||||||
os.system("chmod -R g-rwx /dev/shm /dev/mqueue")
|
os.system("chmod -R g-rwx /dev/shm /dev/mqueue")
|
||||||
os.system("chmod o-rwx /run/postgresql")
|
os.system("chmod o-rwx /run/postgresql")
|
||||||
except:
|
except Exception as e:
|
||||||
|
maxkb_logger.warning(f'Exception: {e}', exc_info=True)
|
||||||
pass
|
pass
|
||||||
if CONFIG.get("SANDBOX_TMP_DIR_ENABLED", '0') == "1":
|
if CONFIG.get("SANDBOX_TMP_DIR_ENABLED", '0') == "1":
|
||||||
tmp_dir_path = os.path.join(self.sandbox_path, 'tmp')
|
tmp_dir_path = os.path.join(self.sandbox_path, 'tmp')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue