-
Notifications
You must be signed in to change notification settings - Fork 1
/
qt-bootstrap-1
executable file
·43 lines (34 loc) · 1.01 KB
/
qt-bootstrap-1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
# Copyright (C) Eric Shubert <[email protected]>
#
# script to do initial bootstrap processing (disable selinux, update everything)
######################################################################
# Change Log
# 12/26/13 written by Eric 'shubes' <[email protected]>
######################################################################
######################################################################
# disable SELINUX
#
a2_disable_selinux(){
selinux_config=/etc/selinux/config
if [ ! -f "$selinux_config" ]; then
echo "$me - $seclinux_config not found"
exit 1
fi
echo "$me - disabling SELINUX ..."
sed -i$(date +%Y%m%d) -e "s|^SELINUX=.*$|SELINUX=disabled|" $selinux_config
}
######################################################################
# main routine begins here
#
me=${0##*/}
myver=v1.0
echo "$me - $myversion"
a2_disable_selinux
echo "$me - updating all packages (yum update) ..."
yum clean all
yum -y update
echo "$me - rebooting now..."
shutdown -r now
echo "$me - completed"
exit 0