From 5d8a2117744004fbc20d8dfab95402af707fcb9f Mon Sep 17 00:00:00 2001 From: Mark Peek Date: Thu, 29 Aug 2013 22:19:13 -0700 Subject: [PATCH] website: add tip about using apt-get/yum -y to prevent hangs --- website/source/docs/provisioners/shell.html.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/website/source/docs/provisioners/shell.html.markdown b/website/source/docs/provisioners/shell.html.markdown index f99178198..1548e63bc 100644 --- a/website/source/docs/provisioners/shell.html.markdown +++ b/website/source/docs/provisioners/shell.html.markdown @@ -152,6 +152,11 @@ between dash and bash can be found on the [DashAsBinSh](https://wiki.ubuntu.com/ * 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 +user input before proceeding. + *How do I tell what my shell script is doing?* * Adding a `-x` flag to the shebang at the top of the script (`#!/bin/sh -x`)