Skip to content
This repository was archived by the owner on Sep 6, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions gitlab-install-el5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,18 @@ echo "### Check if we are root"

echo "### Configure SELinux"

# Disable SELinux
sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config
if [[ $? -eq 0 ]]
then
echo "SELinux disabled"
else
echo "SELinux enabled"

# Turn off SELinux in this session
setenforce 0
# Disable SELinux
sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config

# Turn off SELinux in this session
setenforce 0
fi

echo "### Installing packages"

Expand Down