12 lines
303 B
Bash
12 lines
303 B
Bash
#!/bin/bash
|
|
|
|
# Variablen
|
|
ip_address="127.0.0.1"
|
|
host_name="console.tiab.ing.net"
|
|
host_name2="tiab.ing.net"
|
|
host_entry="${ip_address} ${host_name}"
|
|
host_entry2="${ip_address} ${host_name2}"
|
|
|
|
echo "$host_entry" | sudo tee -a /etc/hosts > /dev/null
|
|
echo "$host_entry2" | sudo tee -a /etc/hosts > /dev/null
|