From 123d75c13a77649b3f3091a8c2ea96164c4d693b Mon Sep 17 00:00:00 2001 From: Samuel Marks Date: Wed, 5 Aug 2015 12:20:51 +1000 Subject: [PATCH 1/2] From /dev/null to -qq, from --silent to -sL, and sudo --- docs/getting-started/install/debian.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/getting-started/install/debian.md b/docs/getting-started/install/debian.md index 40d4748a8..1f75c0e86 100644 --- a/docs/getting-started/install/debian.md +++ b/docs/getting-started/install/debian.md @@ -3,13 +3,13 @@ As of 0.3.18, dokku defaults to being installed via debian package. While certain hosts may require extra work to get running, you may optionally wish to automate the installation of dokku without the use of our `bootstrap.sh` bash script. The following are the steps run by said script: ```shell -curl --silent https://get.docker.io/gpg 2> /dev/null | apt-key add - 2>&1 >/dev/null -curl --silent https://packagecloud.io/gpg.key 2> /dev/null | apt-key add - 2>&1 >/dev/null +curl -sL https://get.docker.io/gpg 2> /dev/null | sudo apt-key add - 2>&1 >/dev/null +curl -sL https://packagecloud.io/gpg.key 2> /dev/null | sudo apt-key add - 2>&1 >/dev/null -echo "deb http://get.docker.io/ubuntu docker main" > /etc/apt/sources.list.d/docker.list -echo "deb https://packagecloud.io/dokku/dokku/ubuntu/ trusty main" > /etc/apt/sources.list.d/dokku.list +sudo echo "deb http://get.docker.io/ubuntu docker main" > /etc/apt/sources.list.d/docker.list +sudo echo "deb https://packagecloud.io/dokku/dokku/ubuntu/ trusty main" > /etc/apt/sources.list.d/dokku.list -sudo apt-get update > /dev/null +sudo apt-get update -qq sudo apt-get install -qq -y linux-image-extra-`uname -r` apt-transport-https sudo apt-get install -qq -y dokku ``` @@ -21,7 +21,7 @@ In case you want to perform an unattended installation of dokku, this is made po You can set any of the below options through the `debconf-set-selections` command, for example to enable vhost-based deployments: ```bash -echo "dokku dokku/vhost_enable boolean true" | debconf-set-selections +sudo echo "dokku dokku/vhost_enable boolean true" | debconf-set-selections ``` After setting the desired options, proceed with the installation as described above. From 287da3fa4738515b0f858240c290ff97256e38e4 Mon Sep 17 00:00:00 2001 From: Samuel Marks Date: Thu, 6 Aug 2015 14:54:54 +1000 Subject: [PATCH 2/2] Correctly elevating echo piping --- docs/getting-started/install/debian.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/getting-started/install/debian.md b/docs/getting-started/install/debian.md index 1f75c0e86..80d47d299 100644 --- a/docs/getting-started/install/debian.md +++ b/docs/getting-started/install/debian.md @@ -6,8 +6,8 @@ As of 0.3.18, dokku defaults to being installed via debian package. While certai curl -sL https://get.docker.io/gpg 2> /dev/null | sudo apt-key add - 2>&1 >/dev/null curl -sL https://packagecloud.io/gpg.key 2> /dev/null | sudo apt-key add - 2>&1 >/dev/null -sudo echo "deb http://get.docker.io/ubuntu docker main" > /etc/apt/sources.list.d/docker.list -sudo echo "deb https://packagecloud.io/dokku/dokku/ubuntu/ trusty main" > /etc/apt/sources.list.d/dokku.list +echo "deb http://get.docker.io/ubuntu docker main" | sudo tee /etc/apt/sources.list.d/docker.list >/dev/null +echo "deb https://packagecloud.io/dokku/dokku/ubuntu/ trusty main" | sudo tee /etc/apt/sources.list.d/dokku.list >/dev/null sudo apt-get update -qq sudo apt-get install -qq -y linux-image-extra-`uname -r` apt-transport-https