Skip to content

Commit 911b868

Browse files
author
Ashley Penney
committed
Merge pull request puppetlabs#2 from mhaskel/rhel7
Fix validate_db_connection_spec.
2 parents ff59d42 + 46d3717 commit 911b868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/acceptance/validate_db_connection_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class { 'postgresql::server':
4444

4545
it 'should keep retrying if database is down' do
4646
if fact('operatingsystem') == 'RedHat' && fact('operatingsystemrelease') =~ /^7/
47-
shell('nohup bash -c "sleep 10; for i in /usr/lib/systemd/system/postgres*; do systemctl start `basename $i`; done" > /dev/null 2>&1 &')
47+
shell('nohup bash -c "sleep 10; systemctl start `basename /usr/lib/systemd/system/postgres*`" > /dev/null 2>&1 &')
4848
else
4949
shell('nohup bash -c "sleep 10; /etc/init.d/postgresql* start" > /dev/null 2>&1 &')
5050
end

0 commit comments

Comments
 (0)