Update install.sh

pull/248/head
midoks 3 years ago
parent c77382f082
commit d50e4196cb
  1. 5
      plugins/openresty/install.sh

@ -42,6 +42,10 @@ Install_openresty()
else else
cpuCore="1" cpuCore="1"
fi fi
if [ "$cpuCore" -gt "1" ];then
cpuCore=`echo "$cpuCore" | awk '{printf("%.2f",($1)*0.8)}' | awk -F '.' '{print $1}'`
fi
# ----- cpu end ------ # ----- cpu end ------
mkdir -p ${openrestyDir} mkdir -p ${openrestyDir}
@ -80,6 +84,7 @@ Install_openresty()
#初始化 #初始化
cd ${rootPath} && python3 ${rootPath}/plugins/openresty/index.py start cd ${rootPath} && python3 ${rootPath}/plugins/openresty/index.py start
cd ${rootPath} && python3 ${rootPath}/plugins/openresty/index.py initd_install cd ${rootPath} && python3 ${rootPath}/plugins/openresty/index.py initd_install
rm -rf $openrestyDir
fi fi
echo '安装完成' > $install_tmp echo '安装完成' > $install_tmp
} }

Loading…
Cancel
Save