mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
Update index.py
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user