Which is the bast strategy to check if a DB has been populated? The target is to execute the "mysql < file.sql" just once since it could not be idempotent.
The idea is to use the unless clause to stop it to run if there is the known data in the table, but it seems that it is just happy with the mysql managing to connect and the fact that the DB return of an empy set is treated as a success return from the mysql command (obviously it managed to execute and the return value of the command does not depend on the result of the query). Any hint? Luca -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/Csk_kOJXTtcJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.