Kaynağa Gözat

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
cam.lafit 9 yıl önce
ebeveyn
işleme
b6bf77956b
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      server_config/server_install.sh

+ 3 - 3
server_config/server_install.sh

@@ -2,12 +2,12 @@
 
 
 # APT-GET
 # APT-GET
 sudo apt-get update
 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
 # Installation of NodeJS
 curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash -
 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
 source ~/.profile
 
 
 # Installation of some packages globally
 # Installation of some packages globally