From b6bf77956b0d9c3cf3bcba371ac4216dbd4f7a24 Mon Sep 17 00:00:00 2001 From: "cam.lafit" Date: Fri, 6 May 2016 10:18:58 +0200 Subject: [PATCH] Prevent dpkg-preconfigure: unable to re-open stdin warning * Follow http://www.liviubalan.com/vagrant-repair-default-dpkg-preconfigure-unable-to-re-open-stdin-no-such-file-or-directory-message trick * Move error message to /dev/null --- server_config/server_install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server_config/server_install.sh b/server_config/server_install.sh index f3e4c92..410e633 100644 --- a/server_config/server_install.sh +++ b/server_config/server_install.sh @@ -2,12 +2,12 @@ # APT-GET sudo apt-get update -sudo apt-get install lsb-release libfontconfig1 libfreetype6 libjpeg-dev -y --force-yes -sudo apt-get install curl git python-software-properties build-essential make g++ -y --force-yes +sudo apt-get install lsb-release libfontconfig1 libfreetype6 libjpeg-dev -y --force-yes > /dev/null 2>&1 +sudo apt-get install curl git python-software-properties build-essential make g++ -y --force-yes > /dev/null 2>&1 # Installation of NodeJS curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash - -sudo apt-get install -y nodejs +sudo apt-get install -y nodejs > /dev/null 2>&1 source ~/.profile # Installation of some packages globally