mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
fix namegen issue when using a proxy
This commit is contained in:
@ -294,7 +294,7 @@ adduser --system --no-create-home --uid 2000 --disabled-password --disabled-logi
|
|||||||
|
|
||||||
# Let's set the hostname
|
# Let's set the hostname
|
||||||
fuECHO "### Setting a new hostname."
|
fuECHO "### Setting a new hostname."
|
||||||
myHOST=$(curl -s www.nsanamegenerator.com | html2text | tr A-Z a-z | awk '{print $1}')
|
myHOST=$(curl -s -f www.nsanamegenerator.com | html2text | tr A-Z a-z | awk '{print $1}')
|
||||||
if [ "$myHOST" = "" ]; then
|
if [ "$myHOST" = "" ]; then
|
||||||
fuECHO "### Failed to fetch name from remote, using local cache."
|
fuECHO "### Failed to fetch name from remote, using local cache."
|
||||||
myHOST=$(fuRANDOMWORD)
|
myHOST=$(fuRANDOMWORD)
|
||||||
|
Reference in New Issue
Block a user