Skip to content

Commit

Permalink
Disable selinux by default on AL2023 Host (#351)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon authored Sep 20, 2023
1 parent f98968e commit f219c70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packer/scripts/al2023/al2023-agent-setups.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
# Node and node-packages are required globally to execute aws cdk command to setup opensearch-cluster.
npm install -g fs-extra [email protected] @aws-cdk/cloudformation-diff aws-cdk [email protected]

# AL2023 Specific Tweaks to disable selinux by default
sudo sed -i 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
sudo grubby --update-kernel ALL --args selinux=0

sudo dnf clean all

sudo mkdir -p /var/jenkins && sudo chown -R $CURR_USER:$CURR_USER /var/jenkins

0 comments on commit f219c70

Please sign in to comment.