Skip to content
This repository was archived by the owner on Jun 11, 2019. It is now read-only.

Commit a0057c6

Browse files
committed
Fixed the error by removing escape character.
http://i.imgur.com/qaFUlGv.png?1 ' in file /tmp/vagrant-puppet/modules-76bee6c9d10deeda599d20f2249d671a/mysql/manifests/queryfile.pp at line 45 ' in file /tmp/vagrant-puppet/modules-76bee6c9d10deeda599d20f2249d671a/mysql/manifests/queryfile.pp at line 46 ' in file /tmp/vagrant-puppet/modules-76bee6c9d10deeda599d20f2249d671a/mysql/manifests/queryfile.pp at line 47 https://github.com/example42/puppet-mysql/blob/master/manifests/queryfile.pp#L44-L46
1 parent 436db6f commit a0057c6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

manifests/queryfile.pp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@
4141
}
4242

4343
exec { "mysqlqueryfile-${name}":
44-
command => "mysql ${arg_mysql_defaults_file} \
45-
${arg_mysql_user} ${arg_mysql_password} ${arg_mysql_host} \
46-
${mysql_db} < ${mysql_file} && \
47-
touch ${mysql_query_filepath}/mysqlqueryfile-${name}.run",
44+
command => "mysql ${arg_mysql_defaults_file} ${arg_mysql_user} ${arg_mysql_password} ${arg_mysql_host} ${mysql_db} < ${mysql_file} && touch ${mysql_query_filepath}/mysqlqueryfile-${name}.run",
4845
path => [ '/usr/bin' , '/usr/sbin' , '/bin' , '/sbin' ],
4946
creates => "${mysql_query_filepath}/mysqlqueryfile-${name}.run",
5047
unless => "ls ${mysql_query_filepath}/mysqlqueryfile-${name}.run",

0 commit comments

Comments
 (0)