master
11617 2 years ago
parent b99a2ccc9d
commit c13ac4d9be
  1. 2
      os/get-os-init.sh
  2. 2
      os/get-pxe.sh

@ -100,7 +100,7 @@ sed -i 's/#UseDNS.*/UseDNS no/' /etc/ssh/sshd_config
sed -i 's/SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config && \ sed -i 's/SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config && \
color Success "配置完成" || color Error "配置异常,请检查" color Success "配置完成" || color Error "配置异常,请检查"
color Info "配置yum源, 此操作将备份您的历史源" color Info "配置yum源, 此操作将备份您的历史源"
ping -w 1 -c 1 10.8.161.40 &>/dev/null ping -w 2 -c 2 $yum_host &>/dev/null
if [ $? -eq 0 ];then if [ $? -eq 0 ];then
local_yum_make local_yum_make
else else

@ -123,7 +123,7 @@ sed -i 's/#UseDNS.*/UseDNS=no/g' /etc/ssh/sshd_config
#yum install -y python3 python3-devel gcc #yum install -y python3 python3-devel gcc
#curl -s -L https://download.beyourself.org.cn/python-project/os/jumpserver-register.py -o /opt/jumpserver-register.py #curl -s -L https://download.beyourself.org.cn/python-project/os/jumpserver-register.py -o /opt/jumpserver-register.py
#pip3 install requests httpsig -i https://mirrors.aliyun.com/pypi/simple #pip3 install requests httpsig -i https://mirrors.aliyun.com/pypi/simple
#python3 /opt/jumpserver-register.py `ip -4 -f inet a show dev ens33 | awk '/inet/{print $2}' | cut -d'/' -f 1` 192.168.96.180 47849e56-81b5-4fe6-a7d4-7d7578abfc32 ab17fa93-8f4f-4547-802f-be81a6197937 d6638212-8896-4596-9b30-ec0e5aa5905c 9ead5ec2-ba29-4b0a-b4d1-75657eec4306 #python3 /opt/jumpserver-register.py \`ip -4 -f inet a show dev ens33 | awk '/inet/{print $2}' | cut -d'/' -f 1\` 192.168.96.180 47849e56-81b5-4fe6-a7d4-7d7578abfc32 ab17fa93-8f4f-4547-802f-be81a6197937 d6638212-8896-4596-9b30-ec0e5aa5905c 9ead5ec2-ba29-4b0a-b4d1-75657eec4306
%end %end
EOF EOF

Loading…
Cancel
Save