|
|
@ -86,15 +86,6 @@ def getInitDTpl(): |
|
|
|
return path |
|
|
|
return path |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def makeConf(): |
|
|
|
|
|
|
|
vhost = getServerDir() + '/nginx/conf/vhost' |
|
|
|
|
|
|
|
if not os.path.exists(vhost): |
|
|
|
|
|
|
|
os.mkdir(vhost) |
|
|
|
|
|
|
|
php_status = getServerDir() + '/nginx/conf/php_status' |
|
|
|
|
|
|
|
if not os.path.exists(php_status): |
|
|
|
|
|
|
|
os.mkdir(php_status) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def getFileOwner(filename): |
|
|
|
def getFileOwner(filename): |
|
|
|
import pwd |
|
|
|
import pwd |
|
|
|
stat = os.lstat(filename) |
|
|
|
stat = os.lstat(filename) |
|
|
@ -192,9 +183,6 @@ def initDreplace(): |
|
|
|
mw.writeFile(systemService, se_content) |
|
|
|
mw.writeFile(systemService, se_content) |
|
|
|
mw.execShell('systemctl daemon-reload') |
|
|
|
mw.execShell('systemctl daemon-reload') |
|
|
|
|
|
|
|
|
|
|
|
# make nginx vhost or other |
|
|
|
|
|
|
|
makeConf() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return file_bin |
|
|
|
return file_bin |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|