Skip to content

Commit

Permalink
Merge pull request #81 from hashicorp/backport-75
Browse files Browse the repository at this point in the history
[Backport] Fix install script issue (#73) / Don't overwrite /etc/sysconfig/selinux symlink (#75)
  • Loading branch information
bnferguson authored Feb 20, 2020
2 parents fc24e28 + f2e5e66 commit 1a51b6c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions modules/configs/files/install-ptfe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ if [ -f /etc/redhat-release ]; then
setenforce 0
mkdir -p /lib/tc
mount --bind /usr/lib64/tc/ /lib/tc/
sed -i -e 's/^SELINUX=enforcing/SELINUX=permissive/' /etc/sysconfig/selinux
sed -i -e '/rhui-REGION-rhel-server-extras/,/^$/s/enabled=0/enabled=1/g' /etc/yum.repos.d/redhat-rhui.repo
yum -y install docker wget jq chrony ipvsadm unzip
# remove after testing rhui?
# curl -sfSL -o /usr/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64
# chmod +x /usr/bin/jq
sed -i --follow-symlinks -e 's/^SELINUX=enforcing/SELINUX=permissive/' /etc/sysconfig/selinux
#sed -i -e '/rhui-REGION-rhel-server-extras/,/^$/s/enabled=0/enabled=1/g' /etc/yum.repos.d/redhat-rhui.repo
yum -y install docker wget chrony ipvsadm unzip
curl -sfSL -o /usr/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64
chmod +x /usr/bin/jq
systemctl enable docker
systemctl start docker
else
Expand Down

0 comments on commit 1a51b6c

Please sign in to comment.