<div dir="ltr">Hi Ney, <div><br></div><div>I've got myself in the same issue in the past, and found this pretty useful: dos2unix. You can apt-get install it, then you get a dos2unix and a unix2dos commands. </div><div><br></div><div>If you succeed with the bitnami -> charm, do you think you could create a generic bitnami converter? That would be interesting. </div><div><br></div><div>Good charming! </div><div>Best,</div><div>Sam</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><br></div><div>--</div><div>Samuel Cozannet</div><div dir="ltr"><div>Cloud, Big Data and IoT Strategy Team<br><div>Business Development - Cloud and ISV Ecosystem</div><div>Changing the Future of Cloud<br><a href="http://ubuntu.com" target="_blank">Ubuntu</a> / <a href="http://canonical.com" target="_blank">Canonical UK LTD</a> / <a href="https://jujucharms.com" target="_blank">Juju</a><br></div><div><a href="mailto:samuel.cozannet@canonical.com" target="_blank">samuel.cozannet@canonical.com</a></div><div>mob: +33 616 702 389</div><div>skype: samnco<span></span><span></span><a href="http:///" target="_blank"></a></div><div>Twitter: @SaMnCo_23<br><a href="https://es.linkedin.com/in/scozannet" target="_blank"><img src="https://static.licdn.com/scds/common/u/img/webpromo/btn_liprofile_blue_80x15.png" style="font-size:12.8000001907349px" alt="View Samuel Cozannet's profile on LinkedIn"></a><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Tue, Mar 1, 2016 at 1:46 AM, Ney Moura <span dir="ltr"><<a href="mailto:neymourac@gmail.com" target="_blank">neymourac@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>I was thinking that i missed some configurations to ran those commands properly only.<br><br></div>Since I use nano, I wasn't able to see those.<br><br></div>Thanks for the tip about hook environment and the command!<br><br></div>Mainly for the quick response =D<br></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">2016-02-29 21:31 GMT-03:00 José Antonio Rey <span dir="ltr"><<a href="mailto:jose@ubuntu.com" target="_blank">jose@ubuntu.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Glad that was it! When I opened it on vim, it said [dos] at the bottom, and after googling the error I saw what it was.</p>
<p dir="ltr">About the command, what happens is right. You should not be able to execute any of those commands. The commands are only executable in a 'hook environment', meaning only hooks will be able to run them. If you really want to execute one of them, you can use 'juju run --service wordpress-single "command goes here"'.</p>
<p dir="ltr">Why do you want to run that manually? Anything missing?</p>
<p dir="ltr">--<br>
José Antonio Rey</p><div><div>
<br><div class="gmail_quote"><div dir="ltr">On Mon, Feb 29, 2016, 19:22 Ney Moura <<a href="mailto:neymourac@gmail.com" target="_blank">neymourac@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Thanks everyone!<br><br></div>José Antonio, you were right!<br><br></div>How did you discover that?<br><br><br></div><div>But let me challenge you guys even more!<br><br></div><div>I need to install something in the VM before using the juju commands, like status-set? I'm asking this because I wasn't able to run these commands in there.<br><br><br></div><div>Thanks again!<br></div></div><div class="gmail_extra"></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-29 19:15 GMT-03:00 José Antonio Rey <span dir="ltr"><<a href="mailto:jose@ubuntu.com" target="_blank">jose@ubuntu.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is because you are using Windows line breaks instead of Linux/Unix line breaks. Try saving your file with Linux/Unix line breaks and give it a go.<div><div><br>
<br>
On 02/29/2016 05:12 PM, David Britton wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mon, Feb 29, 2016 at 07:02:08PM -0300, Ney Moura wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
But I keep having erros with the install hook. It says file not found.<br>
<br>
</blockquote>
<br>
Maybe I missed it in the tarball -- could you attach a juju debug-log<br>
capture while you deploy it?<br>
<br>
Or, /var/log/all-machines.log from the bootstrap node is the same thing.<br>
<br>
Thanks!<br>
<br>
</blockquote>
<br>
-- <br></div></div><span><font color="#888888">
José Antonio Rey<br>
</font></span></blockquote></div><br><br clear="all"><br></div><div class="gmail_extra">-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><b>Ney Moura Conceição</b><br></div></div></div></div></div></div></div>
</div></blockquote></div>
</div></div></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><b>Ney Moura Conceição</b><br></div></div></div></div></div></div></div>
</font></span></div>
<br>--<br>
Juju mailing list<br>
<a href="mailto:Juju@lists.ubuntu.com">Juju@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
<br></blockquote></div><br></div>