-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
30 lines (30 loc) · 1.12 KB
/
setup.sh
File metadata and controls
30 lines (30 loc) · 1.12 KB
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
echo "###############################################################"
echo "# #"
echo "# OPENSTACK INSTALLER (NEWTON VERSION) #"
echo "# #"
echo "##############################################################"
echo "adding LANG and LC_ALL to /etc/environment"
echo "
LANG=en_US.utf-8
LC_ALL=en_US.utf-8" >> /etc/environment
echo "Stopping NetworkManager and Firewalld"
systemctl disable NetworkManager Firewalld
systemctl stop NetworkManager Firewalld
echo "enabling network"
systemctl enable network
echo "changing selinux configurations"
sed 's/SELINUX=enforcing/SELINUX=permissive/g'< /etc/selinux/config | tee /etc/selinux/config
echo "you have to reboot"
echo "reboot now (yes/no) ?"
read answer
case $answer in
*yes*) echo 'rebooting...'
sync;reboot;;
*)echo 'reboot aborted'
echo 'verifying configuration files...'
echo '**************/etc/environment content:***************'
head /etc/environment
echo '**************/etc/selinux/config content:************'
cat /etc/selinux/config
sync;;
esac