website: add tip about using apt-get/yum -y to prevent hangs

This commit is contained in:
Mark Peek 2013-08-29 22:19:13 -07:00
parent 1b91110a59
commit 5d8a211774

View File

@ -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 * See the above tip. More than likely your login shell is using /bin/bash
while the provisioner is using /bin/sh. 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?* *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`) * Adding a `-x` flag to the shebang at the top of the script (`#!/bin/sh -x`)