Update site_api.py

This commit is contained in:
midoks 2022-09-21 17:06:19 +08:00
parent 3265deed3d
commit eedaef7eec
1 changed files with 1 additions and 1 deletions

View File

@ -2371,7 +2371,7 @@ location ^~ {from} {
self.delUserInI(newPath)
openPath = 'open_basedir={}/:{}/'.format(newPath, sitePath)
if runPath == '/':
openPath = 'open_basedir={}/'.format(newPath)
openPath = 'open_basedir={}/'.format(sitePath)
mw.writeFile(filename, openPath + ':/www/server/php:/tmp/:/proc/')
mw.execShell("chattr +i " + filename)