Update index.py

pull/109/head
midoks 3 years ago
parent f14393656a
commit 5c0637e3a9
  1. 10
      plugins/php/index.py

@ -230,15 +230,13 @@ def initReplace(version):
session_path = getServerDir() + '/tmp/session' session_path = getServerDir() + '/tmp/session'
if not os.path.exists(session_path): if not os.path.exists(session_path):
os.mkdir(session_path) mw.execShell('mkdir -p ' + session_path)
if not mw.isAppleSystem(): mw.execShell('chown -R www:www ' + session_path)
mw.execShell('chown -R www:www ' + session_path)
upload_path = getServerDir() + '/tmp/upload' upload_path = getServerDir() + '/tmp/upload'
if not os.path.exists(upload_path): if not os.path.exists(upload_path):
os.mkdir(upload_path) mw.execShell('mkdir -p ' + upload_path)
if not mw.isAppleSystem(): mw.execShell('chown -R www:www ' + upload_path)
mw.execShell('chown -R www:www ' + upload_path)
# systemd # systemd
systemDir = '/lib/systemd/system' systemDir = '/lib/systemd/system'

Loading…
Cancel
Save