disable logging for installer

1. improve performance
2. improve convenience, user sees progress
3. infos and errors are displayed
This commit is contained in:
Marco Ochse 2017-04-17 00:53:47 +02:00
parent 5b267b396f
commit 62ce12a8a9

View file

@ -26,9 +26,9 @@ mySITES="https://index.docker.io https://ubuntu.com https://github.com http://ns
fuECHO () { fuECHO () {
local myRED=1 local myRED=1
local myWHT=7 local myWHT=7
tput setaf $myRED -T xterm tput setaf $myRED -T linux
echo "$1" "$2" echo "$1" "$2"
tput setaf $myWHT -T xterm tput setaf $myWHT -T linux
} }
fuRANDOMWORD () { fuRANDOMWORD () {
@ -40,10 +40,10 @@ fuRANDOMWORD () {
} }
# Let's make sure there is a warning if running for a second time # Let's make sure there is a warning if running for a second time
if [ -f install.log ]; #if [ -f install.log ];
then fuECHO "### Running more than once may complicate things. Erase install.log if you are really sure." # then fuECHO "### Running more than once may complicate things. Erase install.log if you are really sure."
exit 1; # exit 1;
fi #fi
# Let's setup the proxy for env # Let's setup the proxy for env
if [ -f $myPROXYFILEPATH ]; if [ -f $myPROXYFILEPATH ];
@ -136,9 +136,9 @@ htpasswd -b -c /etc/nginx/nginxpasswd "$myUSER" "$myPASS1"
fuECHO fuECHO
# Let's log for the beauty of it # Let's log for the beauty of it
set -e #set -e
exec 2> >(tee "install.err") #exec 2> >(tee "install.err")
exec > >(tee "install.log") #exec > >(tee "install.log")
# Let's generate a SSL self-signed certificate without interaction (browsers will see it invalid anyway) # Let's generate a SSL self-signed certificate without interaction (browsers will see it invalid anyway)
fuECHO "### Generating a self-signed-certificate for NGINX." fuECHO "### Generating a self-signed-certificate for NGINX."