Skip to content

Commit

Permalink
fix(cfctl): use != instead of =
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyen Marc <[email protected]>
  • Loading branch information
Darkness4 committed Jun 28, 2022
1 parent d0a11b0 commit 577920c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions cfctl.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ spec:
apply:
before:
# Set SELinux Permissive
- sh -c 'if [ "$(getenforce)" = "Permissive" ]; then sed -i s/^SELINUX=.*$/SELINUX=permissive/ /etc/selinux/config; fi'
- sh -c 'if [ "$(getenforce)" = "Permissive" ]; then setenforce 0; fi'
- sh -c 'if [ "$(getenforce)" != "Permissive" ]; then sed -i s/^SELINUX=.*$/SELINUX=permissive/ /etc/selinux/config; fi'
- sh -c 'if [ "$(getenforce)" != "Permissive" ]; then setenforce 0; fi'

k0s:
version: '1.23.8+k0s.0'
Expand Down
4 changes: 2 additions & 2 deletions web/docs/getting-started/03-k0s-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ spec:
apply:
before:
# Set SELinux Permissive
- sh -c 'if [ "$(getenforce)" = "Permissive" ]; then sed -i s/^SELINUX=.*$/SELINUX=permissive/ /etc/selinux/config; fi'
- sh -c 'if [ "$(getenforce)" = "Permissive" ]; then setenforce 0; fi'
- sh -c 'if [ "$(getenforce)" != "Permissive" ]; then sed -i s/^SELINUX=.*$/SELINUX=permissive/ /etc/selinux/config; fi'
- sh -c 'if [ "$(getenforce)" != "Permissive" ]; then setenforce 0; fi'

...
```
Expand Down
12 changes: 6 additions & 6 deletions web/docs/guides/30-maintenance/01-high-availability.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ spec:
apply:
before:
# Set SELinux Permissive
- sh -c 'if [ "$(getenforce)" = "Permissive" ]; then sed -i s/^SELINUX=.*$/SELINUX=permissive/ /etc/selinux/config; fi'
- sh -c 'if [ "$(getenforce)" = "Permissive" ]; then setenforce 0; fi'
- sh -c 'if [ "$(getenforce)" != "Permissive" ]; then sed -i s/^SELINUX=.*$/SELINUX=permissive/ /etc/selinux/config; fi'
- sh -c 'if [ "$(getenforce)" != "Permissive" ]; then setenforce 0; fi'

- ssh:
address: 10.10.1.2
Expand All @@ -171,8 +171,8 @@ spec:
apply:
before:
# Set SELinux Permissive
- sh -c 'if [ "$(getenforce)" = "Permissive" ]; then sed -i s/^SELINUX=.*$/SELINUX=permissive/ /etc/selinux/config; fi'
- sh -c 'if [ "$(getenforce)" = "Permissive" ]; then setenforce 0; fi'
- sh -c 'if [ "$(getenforce)" != "Permissive" ]; then sed -i s/^SELINUX=.*$/SELINUX=permissive/ /etc/selinux/config; fi'
- sh -c 'if [ "$(getenforce)" != "Permissive" ]; then setenforce 0; fi'

- ssh:
address: 10.10.3.2
Expand All @@ -190,8 +190,8 @@ spec:
apply:
before:
# Set SELinux Permissive
- sh -c 'if [ "$(getenforce)" = "Permissive" ]; then sed -i s/^SELINUX=.*$/SELINUX=permissive/ /etc/selinux/config; fi'
- sh -c 'if [ "$(getenforce)" = "Permissive" ]; then setenforce 0; fi'
- sh -c 'if [ "$(getenforce)" != "Permissive" ]; then sed -i s/^SELINUX=.*$/SELINUX=permissive/ /etc/selinux/config; fi'
- sh -c 'if [ "$(getenforce)" != "Permissive" ]; then setenforce 0; fi'

k0s:
...
Expand Down

0 comments on commit 577920c

Please sign in to comment.