We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ff59d42 + 46d3717 commit 911b868Copy full SHA for 911b868
spec/acceptance/validate_db_connection_spec.rb
@@ -44,7 +44,7 @@ class { 'postgresql::server':
44
45
it 'should keep retrying if database is down' do
46
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 &')
+ shell('nohup bash -c "sleep 10; systemctl start `basename /usr/lib/systemd/system/postgres*`" > /dev/null 2>&1 &')
48
else
49
shell('nohup bash -c "sleep 10; /etc/init.d/postgresql* start" > /dev/null 2>&1 &')
50
end
0 commit comments