mirror of https://github.com/wulabing/Xray_onekey
bug修复
parent
81590cefed
commit
2818958d3a
|
@ -170,12 +170,19 @@ dependency_install(){
|
||||||
${INS} -y install libpcre3 libpcre3-dev zlib1g-dev dbus
|
${INS} -y install libpcre3 libpcre3-dev zlib1g-dev dbus
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${INS} -y haveged
|
${INS} -y install rng-tools
|
||||||
|
judge "rng-tools 安装"
|
||||||
|
|
||||||
|
${INS} -y install haveged
|
||||||
judge "haveged 安装"
|
judge "haveged 安装"
|
||||||
|
|
||||||
|
sed -i -r '/^HRNGDEVICE/d;/#HRNGDEVICE=\/dev\/null/a HRNGDEVICE=/dev/urandom' /etc/default/rng-tools
|
||||||
|
|
||||||
if [[ "${ID}" == "centos" ]];then
|
if [[ "${ID}" == "centos" ]];then
|
||||||
|
systemctl start rngd && systemctl enable rngd
|
||||||
systemctl start haveged && systemctl enable haveged
|
systemctl start haveged && systemctl enable haveged
|
||||||
else
|
else
|
||||||
|
systemctl start rng-tools && systemctl enable rng-tools
|
||||||
systemctl start haveged && systemctl enable haveged
|
systemctl start haveged && systemctl enable haveged
|
||||||
fi
|
fi
|
||||||
judge "nginx 编译依赖安装"
|
judge "nginx 编译依赖安装"
|
||||||
|
|
Loading…
Reference in New Issue