vault/enos/modules/disable_selinux/scripts/make-selinux-permissive.sh
Rebecca Willett c28739512a
Add Amazon Linux, openSUSE Leap, and SUSE SLES support to Enos scenarios and modules (#25983)
Add Consul edition support to Enos scenarios and modules
Add Linux distros and Consul edition to Enos samples
Bump RHEL versions to 9.3 and 8.9
2024-06-05 12:58:35 -04:00

19 lines
253 B
Bash

#!/usr/bin/env bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
set -e
fail() {
echo "$1" 1>&2
exit 1
}
if ! type getenforce &> /dev/null; then
exit 0
fi
if sudo getenforce | grep Enforcing; then
sudo setenforce 0
fi