/srv/irclogs.ubuntu.com/2015/09/10/#cloud-init.txt

arkinhttp://pastie.org/private/aedriwyhrntvtylnf0txgg15:21
arkincan anyone help me clean this up? I'm getting some errors atm15:21
smoserarkin, you're probably facing shell quote issues15:34
smoseravoid shell quote15:34
smoserinstead of 'runcmd' having a bunch of strings, populate it with a bunch of arrays15:35
smosernot this15:35
smoserruncmd:15:35
smoser  - mysql -e 'CREATE DATABASE \`{{ mysql_db }}\`;'15:35
smoserbut this15:35
smoserruncmd:15:35
smoser  - [mysql, -e 'CREATE DATABASE "{{ mysql_db }}";'15:35
smoseror whatever would be the right syntax there.15:36
smoserbut basically then you can avoid shell getting in the way.15:36
arkinyea I am smoser17:08
arkinI fixed it messing around with " ' ` variations17:09
arkinthanks for your reply17:09
smoserarkin, really, though. get rid of the shell interpretation17:14
smoserits much more sane.17:14

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!