Update index.py

This commit is contained in:
midoks
2022-06-19 14:03:04 +08:00
parent f14393656a
commit 5c0637e3a9
+2 -4
View File
@@ -230,14 +230,12 @@ def initReplace(version):
session_path = getServerDir() + '/tmp/session'
if not os.path.exists(session_path):
os.mkdir(session_path)
if not mw.isAppleSystem():
mw.execShell('mkdir -p ' + session_path)
mw.execShell('chown -R www:www ' + session_path)
upload_path = getServerDir() + '/tmp/upload'
if not os.path.exists(upload_path):
os.mkdir(upload_path)
if not mw.isAppleSystem():
mw.execShell('mkdir -p ' + upload_path)
mw.execShell('chown -R www:www ' + upload_path)
# systemd