зеркало из https://github.com/mozilla/hubs-ops.git
Merge pull request #61 from mozilla/bug/fix-hostname-after-reboot
Ensure generated_hostname file is available after reboot
This commit is contained in:
Коммит
c0c8fe6758
|
@ -7,6 +7,7 @@ HOSTED_ZONE_ID="Z26OTGLBBCAHK4"
|
|||
HOSTED_ZONE_NAME="reticulum.io"
|
||||
|
||||
if [[ ! -z "$(hostname | grep $HOSTED_ZONE_NAME)" ]] ; then
|
||||
sudo hostname > /var/run/generated_hostname
|
||||
echo "Hostname already set, exiting."
|
||||
exit 0
|
||||
fi
|
||||
|
|
Загрузка…
Ссылка в новой задаче