pull/267/head
midoks 3 years ago
parent ece7d43950
commit 6d8e5403c8
  1. 1
      class/core/cert_request.py
  2. 4
      scripts/init.d/mw.tpl

@ -284,6 +284,7 @@ class cert_request:
headers = {"User-Agent": self.__user_agent}
response = requests.get(self.__apis[
'newNonce'], timeout=self.__acme_timeout, headers=headers, verify=self.__verify)
self.__replay_nonce = response.headers["replay-nonce"]
except Exception as e:
raise Exception("获取随机数失败: {}".format(str(e)))

@ -22,15 +22,13 @@ PATH=$PATH:$mw_path/bin
if [ -f $mw_path/bin/activate ];then
source $mw_path/bin/activate
else
echo ""
fi
mw_start_panel()
{
isStart=`ps -ef|grep 'gunicorn -c setting.py app:app' |grep -v grep|awk '{print $2}'`
if [ "$isStart" == '' ];then
echo -e "Starting mw-panel... \c"
echo -e "starting mw-panel... \c"
cd $mw_path && gunicorn -c setting.py app:app
port=$(cat ${mw_path}/data/port.pl)
isStart=""

Loading…
Cancel
Save