From e696bb7727bfe7c0f334f5d658f38cc845b970a2 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Tue, 20 Jan 2015 10:59:31 -0500 Subject: [PATCH 1/3] provisioner/shell: Fix link with parentheses. --- website/source/docs/provisioners/shell.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/source/docs/provisioners/shell.html.markdown b/website/source/docs/provisioners/shell.html.markdown index ffed1e442..afee187df 100644 --- a/website/source/docs/provisioners/shell.html.markdown +++ b/website/source/docs/provisioners/shell.html.markdown @@ -150,7 +150,7 @@ on reboot or in your shell script. For example, on Gentoo: * On Ubuntu the /bin/sh shell is [dash](http://en.wikipedia.org/wiki/Debian_Almquist_shell). If your script has -[bash](http://en.wikipedia.org/wiki/Bash_(Unix_shell\)) specific commands in it +[bash](http://en.wikipedia.org/wiki/Bash_(Unix_shell)) specific commands in it then put `#!/bin/bash` at the top of your script. Differences between dash and bash can be found on the [DashAsBinSh](https://wiki.ubuntu.com/DashAsBinSh) Ubuntu wiki page. From 239bdcef29b54b31355aadfcd98c232a09cea1d7 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Tue, 20 Jan 2015 11:01:37 -0500 Subject: [PATCH 2/3] provisioner/shell: Added code formatting. --- website/source/docs/provisioners/shell.html.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/source/docs/provisioners/shell.html.markdown b/website/source/docs/provisioners/shell.html.markdown index afee187df..b1b91de37 100644 --- a/website/source/docs/provisioners/shell.html.markdown +++ b/website/source/docs/provisioners/shell.html.markdown @@ -148,7 +148,7 @@ on reboot or in your shell script. For example, on Gentoo: *My shell script doesn't work correctly on Ubuntu* -* On Ubuntu the /bin/sh shell is +* On Ubuntu the `/bin/sh` shell is [dash](http://en.wikipedia.org/wiki/Debian_Almquist_shell). If your script has [bash](http://en.wikipedia.org/wiki/Bash_(Unix_shell)) specific commands in it then put `#!/bin/bash` at the top of your script. Differences @@ -156,12 +156,12 @@ between dash and bash can be found on the [DashAsBinSh](https://wiki.ubuntu.com/ *My shell works when I login but fails with the shell provisioner* -* See the above tip. More than likely your login shell is using /bin/bash -while the provisioner is using /bin/sh. +* See the above tip. More than likely your login shell is using `/bin/bash` +while the provisioner is using `/bin/sh`. *My installs hang when using `apt-get` or `yum`* -* Make sure you add a "-y" to the command to prevent it from requiring +* Make sure you add a `-y` to the command to prevent it from requiring user input before proceeding. *How do I tell what my shell script is doing?* From 61c95732dd0bd7fa3e7401d220c8f178d6c41e64 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Tue, 20 Jan 2015 11:04:38 -0500 Subject: [PATCH 3/3] provisioner/shell: Added punctuation. --- website/source/docs/provisioners/shell.html.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/source/docs/provisioners/shell.html.markdown b/website/source/docs/provisioners/shell.html.markdown index b1b91de37..41653abf5 100644 --- a/website/source/docs/provisioners/shell.html.markdown +++ b/website/source/docs/provisioners/shell.html.markdown @@ -148,15 +148,15 @@ on reboot or in your shell script. For example, on Gentoo: *My shell script doesn't work correctly on Ubuntu* -* On Ubuntu the `/bin/sh` shell is +* On Ubuntu, the `/bin/sh` shell is [dash](http://en.wikipedia.org/wiki/Debian_Almquist_shell). If your script has -[bash](http://en.wikipedia.org/wiki/Bash_(Unix_shell)) specific commands in it +[bash](http://en.wikipedia.org/wiki/Bash_(Unix_shell))-specific commands in it, then put `#!/bin/bash` at the top of your script. Differences between dash and bash can be found on the [DashAsBinSh](https://wiki.ubuntu.com/DashAsBinSh) Ubuntu wiki page. *My shell works when I login but fails with the shell provisioner* -* See the above tip. More than likely your login shell is using `/bin/bash` +* See the above tip. More than likely, your login shell is using `/bin/bash` while the provisioner is using `/bin/sh`. *My installs hang when using `apt-get` or `yum`*