mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 06:39:25 +08:00
update
This commit is contained in:
@@ -101,7 +101,7 @@ def getInitDTpl():
|
||||
def getPidFile():
|
||||
file = getConf()
|
||||
content = mw.readFile(file)
|
||||
rep = 'pid\s*(.*)'
|
||||
rep = 'pid\s*(.*);'
|
||||
tmp = re.search(rep, content)
|
||||
return tmp.groups()[0].strip()
|
||||
|
||||
@@ -306,7 +306,11 @@ def start():
|
||||
|
||||
|
||||
def stop():
|
||||
return restyOp('stop')
|
||||
r = restyOp('stop')
|
||||
pid_file = getPidFile()
|
||||
if os.path.exists(pid_file):
|
||||
os.remove(pid_file)
|
||||
return r
|
||||
|
||||
|
||||
def restart():
|
||||
|
||||
@@ -103,6 +103,8 @@ fi
|
||||
|
||||
pip3 install --upgrade pip -i $PIPSRC
|
||||
pip3 install --upgrade setuptools -i $PIPSRC
|
||||
|
||||
# --no-cache-dir
|
||||
cd /www/server/mdserver-web && pip3 install -r /www/server/mdserver-web/requirements.txt -i $PIPSRC
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user