Skip to content

Commit

Permalink
Fix for #62
Browse files Browse the repository at this point in the history
  • Loading branch information
Werner Dijkerman committed Apr 7, 2015
1 parent 27e363d commit 3ddc885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/database/mysql.pp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
case $zabbix_type {
'proxy': {
exec { 'zabbix_proxy_create.sql':
command => "cd ${schema_path} && mysql -h '${database_host}' -u '${database_user}' -p'${database_password}' -D '${database_name}' < schema.sql && touch /etc/zabbix/.schema.done",
command => "cd ${schema_path} && if [ -f schema.sql.gz ]; then gunzip schema.sql.gz ; fi && mysql -h '${database_host}' -u '${database_user}' -p'${database_password}' -D '${database_name}' < schema.sql && touch /etc/zabbix/.schema.done",
path => "/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:${database_path}",
unless => 'test -f /etc/zabbix/.schema.done',
provider => 'shell',
Expand Down

0 comments on commit 3ddc885

Please sign in to comment.