Skip to content

Commit

Permalink
added selinux disable
Browse files Browse the repository at this point in the history
  • Loading branch information
HostOnNet committed Aug 8, 2017
1 parent 2b9a541 commit 12f0b23
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions rhel/environment.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

# Copy .vimrc if not exists
if ! [ -f /root/.vimrc ] ; then
cp ../data/.vimrc /root/.vimrc
fi

if ! grep .bash_hostonnet /root/.bashrc; then
echo "source /root/.bash_hostonnet" >> /root/.bashrc
fi

if ! [ -f /root/.bash_hostonnet ]; then
cp ../data/.bash_hostonnet /root/.bash_hostonnet
fi
4 changes: 4 additions & 0 deletions rhel/selinux-disable.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bash/bin

sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
setenforce 0

0 comments on commit 12f0b23

Please sign in to comment.