Skip to content

Commit

Permalink
Merge pull request #5195 from wazuh/bug/5192-dtt1-iteration-3-allocat…
Browse files Browse the repository at this point in the history
…ion-module-opensuse15-ami-connection-failure-by-using-ssh

Fixed userData script for openSUSE 15
  • Loading branch information
teddytpc1 authored Apr 9, 2024
2 parents a56ca72 + cdd2bc9 commit 231d8d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deployability/modules/allocation/aws/helpers/userData.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ if [ ! -r "/etc/os-release" ] || [ "$DIST_NAME" = "centos" ]; then
fi
fi

if [ "$DIST_NAME" = "amzn" ] || [ "$DIST_NAME" = "sles" ]; then
if [ "$DIST_NAME" = "amzn" ] || [ "$DIST_NAME" = "sles" ] || [ "$DIST_NAME" = "opensuse-leap" ]; then
sudo sed -i "s/#Port\s22/Port ${SSH_PORT}/" /etc/ssh/sshd_config
sudo systemctl restart sshd.service
fi
Expand Down

0 comments on commit 231d8d1

Please sign in to comment.