10 lines
144 B
Plaintext
10 lines
144 B
Plaintext
|
#!/bin/sh
|
||
|
set -e
|
||
|
|
||
|
if [ -n "${new_host_name}" ]; then
|
||
|
cat << EOName > /etc/hostname
|
||
|
${new_host_name}
|
||
|
EOName
|
||
|
hostname -F /etc/hostname
|
||
|
fi
|