|
|
@ -48,6 +48,8 @@ if [ ! -d /root/.acme.sh ];then |
|
|
|
curl https://get.acme.sh | sh |
|
|
|
curl https://get.acme.sh | sh |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
yum install -y net-tools |
|
|
|
|
|
|
|
|
|
|
|
SSH_PORT=`netstat -ntpl|grep sshd|grep -v grep | sed -n "1,1p" | awk '{print $4}' | awk -F : '{print $2}'` |
|
|
|
SSH_PORT=`netstat -ntpl|grep sshd|grep -v grep | sed -n "1,1p" | awk '{print $4}' | awk -F : '{print $2}'` |
|
|
|
if [ "$SSH_PORT" == "" ];then |
|
|
|
if [ "$SSH_PORT" == "" ];then |
|
|
|
SSH_PORT_LINE=`cat /etc/ssh/sshd_config | grep "Port \d*" | tail -1` |
|
|
|
SSH_PORT_LINE=`cat /etc/ssh/sshd_config | grep "Port \d*" | tail -1` |
|
|
|