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 () {
|
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."
|
||||||
|
|
Loading…
Reference in a new issue