mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
up
This commit is contained in:
@@ -103,7 +103,8 @@ def initDreplace():
|
||||
mw.writeFile(conf, conf_content)
|
||||
|
||||
if os.path.exists(systemDir) and not os.path.exists(systemService):
|
||||
supervisord_bin = mw.execShell('which supervisord')[0].strip()
|
||||
supervisord_bin = mw.execShell(
|
||||
'source ' + mw.getServerDir() + '/mdserver-web/bin/activate' + '&& which supervisord')[0].strip()
|
||||
se_content = mw.readFile(systemServiceTpl)
|
||||
se_content = se_content.replace('{$SERVER_PATH}', service_path)
|
||||
se_content = se_content.replace('{$SUP_BIN}', supervisord_bin)
|
||||
|
||||
@@ -16,6 +16,9 @@ OSNAME=`cat ${rootPath}/data/osname.pl`
|
||||
OSNAME_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'`
|
||||
|
||||
|
||||
|
||||
source ${rootPath}/bin/activate
|
||||
|
||||
Install_app()
|
||||
{
|
||||
echo '正在安装脚本文件...' > $install_tmp
|
||||
@@ -28,7 +31,6 @@ Install_app()
|
||||
if [ "centos" == "$OSNAME" ] || [ "fedora" == "$OSNAME" ];then
|
||||
pip install supervisor
|
||||
elif [ "ubuntu" == "$OSNAME" ] || [ "debian" == "$OSNAME" ] ;then
|
||||
pip install supervisor
|
||||
pip install supervisor
|
||||
else
|
||||
pip install supervisor
|
||||
|
||||
Reference in New Issue
Block a user