Switch to a regex match to ignore \n's.
This commit is contained in:
parent
35ea4ebb64
commit
ef86a33997
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ describe 'postgresql::server::tablespace:' do
|
|||
shell('mkdir -p /tmp/postgres')
|
||||
# Apply appropriate selinux labels
|
||||
if fact('osfamily') == 'RedHat'
|
||||
if shell('getenforce').stdout == 'Enforcing'
|
||||
if shell('getenforce').stdout =~ /Enforcing/
|
||||
shell('chcon -Rv --type=postgresql_db_t /tmp/postgres')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue