Skip to content

Commit

Permalink
Update debian.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Jun 7, 2024
1 parent 4d16096 commit 9866851
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/install/debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ if [ ! -z "$cn" ];then
fi
ntpdate $NTPHOST | logger -t NTP

apt install -y net-tools

SSH_PORT=`netstat -ntpl|grep sshd|grep -v grep | sed -n "1,1p" | awk '{print $4}' | awk -F : '{print $2}'`
if [ "$SSH_PORT" == "" ];then
SSH_PORT_LINE=`cat /etc/ssh/sshd_config | grep "Port \d*" | tail -1`
Expand Down Expand Up @@ -158,7 +160,6 @@ fi
apt install -y build-essential
apt install -y devscripts

apt install -y net-tools
apt install -y autoconf
apt install -y gcc
apt install -y patchelf
Expand Down

0 comments on commit 9866851

Please sign in to comment.