This commit is contained in:
midoks
2020-07-16 16:30:00 +08:00
parent b43da4eea8
commit 6eadbcd53e
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -214,6 +214,12 @@ def initReplace(version):
os.mkdir(session_path)
if not mw.isAppleSystem():
mw.execShell('chown -R www:www ' + session_path)
upload_path = '/tmp/upload'
if not os.path.exists(upload_path):
os.mkdir(upload_path)
if not mw.isAppleSystem():
mw.execShell('chown -R www:www ' + upload_path)
return file_bin