mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-28 19:28:50 +00:00
fix namegen issue when using a proxy
This commit is contained in:
parent
685c59f27e
commit
d1b85a497d
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ adduser --system --no-create-home --uid 2000 --disabled-password --disabled-logi
|
|||
|
||||
# Let's set the 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
|
||||
fuECHO "### Failed to fetch name from remote, using local cache."
|
||||
myHOST=$(fuRANDOMWORD)
|
||||
|
|
Loading…
Reference in a new issue