diff --git a/plugins/php/index.py b/plugins/php/index.py index 98ac9dbca..b726d625f 100755 --- a/plugins/php/index.py +++ b/plugins/php/index.py @@ -230,15 +230,13 @@ 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('chown -R www:www ' + session_path) + 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('chown -R www:www ' + upload_path) + mw.execShell('mkdir -p ' + upload_path) + mw.execShell('chown -R www:www ' + upload_path) # systemd systemDir = '/lib/systemd/system'