Skip to content

Commit

Permalink
ci: fix openssl issue in cs9
Browse files Browse the repository at this point in the history
  • Loading branch information
Yi He committed Oct 12, 2024
1 parent 3c63d0e commit 3f1b6cf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,16 @@ for SOURCE in $(sudo composer-cli sources list); do
sudo composer-cli sources info "$SOURCE"
done

# In case port 8081 is already in use
# In case port 8081 is already in use in testing-farm machine
sudo dnf install -y lsof
if lsof -nP -iTCP -sTCP:LISTEN|grep 8081; then
sudo fuser -k 8081/tcp
fi

# Fix openssl issue on cs9, after openssl upgraded to openssl-libs-1:3.2.2-6.el9.x86_64, ssh will report error like this:
# [root@yih-c9-4444 ~]# ssh
# OpenSSL version mismatch. Built against 30000070, you have 30200020
if [[ "${ID}-${VERSION_ID}" == "centos-9" ]]; then
sudo dnf remove -y openssh-server openssh-clients
sudo dnf install -y openssh-server openssh-clients
fi

0 comments on commit 3f1b6cf

Please sign in to comment.