File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ deploy_compose(){
48
48
system::centos::disable_selinux
49
49
system::centos::config_repo
50
50
;;
51
+ Fedora|fedora)
52
+ system::fedora::disable_selinux
53
+ system::fedora::config_repo
54
+ ;;
51
55
Ubuntu|ubuntu)
52
56
system::ubuntu::config_repo
53
57
;;
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ system::centos::disable_selinux(){
10
10
infolog " Disabled selinux service successfully"
11
11
}
12
12
13
+ system::fedora::disable_selinux (){
14
+ sed -i ' s/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config
15
+ setenforce 0 || warnlog " Warning: setenforce 0 failed"
16
+ infolog " Disabled selinux service successfully"
17
+ }
18
+
13
19
system::centos::config_repo (){
14
20
infolog " Updated the yum repo file"
15
21
yum clean -q all || true
@@ -20,6 +26,16 @@ system::centos::config_repo(){
20
26
fi
21
27
}
22
28
29
+ system::fedora::config_repo (){
30
+ infolog " Updated the yum repo file"
31
+ yum clean -q all || true
32
+ cp -f ${RESOURCES_NGINX_DIR} /repos/CentOS-7-All-in-One.repo /etc/yum.repos.d/offline-resources.repo
33
+ sed -i " s#${DEFAULT_URL} #file://${RESOURCES_NGINX_DIR} #g" /etc/yum.repos.d/offline-resources.repo
34
+ if yum makecache -q > /dev/null; then
35
+ infolog " Updated the repo file successfully"
36
+ fi
37
+ }
38
+
23
39
system::debian::config_repo (){
24
40
infolog " Update the apt list file"
25
41
echo " deb [trusted=yes] file://${RESOURCES_NGINX_DIR} /debian/${ARCH} ${VERSION_CODENAME} /" \
You can’t perform that action at this time.
0 commit comments