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 1469fbf + cdaa839 commit 6f531adCopy full SHA for 6f531ad
manifests/server/service.pp
@@ -52,10 +52,11 @@
52
$mysqlsocket = $options['mysqld']['socket']
53
}
54
55
+ $test_command = ['test', '-S', shell_escape($mysqlsocket)]
56
if $service_ensure != 'stopped' {
57
exec { 'wait_for_mysql_socket_to_open':
- command => "test -S ${mysqlsocket}",
58
- unless => "test -S ${mysqlsocket}",
+ command => $test_command,
59
+ unless => [$test_command],
60
tries => '3',
61
try_sleep => '10',
62
require => Service['mysqld'],
0 commit comments