mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-28 19:28:50 +00:00
disable logging for installer
1. improve performance 2. improve convenience, user sees progress 3. infos and errors are displayed
This commit is contained in:
parent
5b267b396f
commit
62ce12a8a9
1 changed files with 9 additions and 9 deletions
|
@ -26,9 +26,9 @@ mySITES="https://index.docker.io https://ubuntu.com https://github.com http://ns
|
|||
fuECHO () {
|
||||
local myRED=1
|
||||
local myWHT=7
|
||||
tput setaf $myRED -T xterm
|
||||
tput setaf $myRED -T linux
|
||||
echo "$1" "$2"
|
||||
tput setaf $myWHT -T xterm
|
||||
tput setaf $myWHT -T linux
|
||||
}
|
||||
|
||||
fuRANDOMWORD () {
|
||||
|
@ -40,10 +40,10 @@ fuRANDOMWORD () {
|
|||
}
|
||||
|
||||
# Let's make sure there is a warning if running for a second time
|
||||
if [ -f install.log ];
|
||||
then fuECHO "### Running more than once may complicate things. Erase install.log if you are really sure."
|
||||
exit 1;
|
||||
fi
|
||||
#if [ -f install.log ];
|
||||
# then fuECHO "### Running more than once may complicate things. Erase install.log if you are really sure."
|
||||
# exit 1;
|
||||
#fi
|
||||
|
||||
# Let's setup the proxy for env
|
||||
if [ -f $myPROXYFILEPATH ];
|
||||
|
@ -136,9 +136,9 @@ htpasswd -b -c /etc/nginx/nginxpasswd "$myUSER" "$myPASS1"
|
|||
fuECHO
|
||||
|
||||
# Let's log for the beauty of it
|
||||
set -e
|
||||
exec 2> >(tee "install.err")
|
||||
exec > >(tee "install.log")
|
||||
#set -e
|
||||
#exec 2> >(tee "install.err")
|
||||
#exec > >(tee "install.log")
|
||||
|
||||
# Let's generate a SSL self-signed certificate without interaction (browsers will see it invalid anyway)
|
||||
fuECHO "### Generating a self-signed-certificate for NGINX."
|
||||
|
|
Loading…
Reference in a new issue