Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
Zach Marano committed Jan 20, 2017
2 parents ddea656 + bec0c16 commit 34af307
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions google_config/bin/set_hostname
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ fi
if [ -n "$new_host_name" ]; then
hostname "${new_host_name%%.*}"

# If NetworkManager is installed set the hostname with nmcli.
# to resolve issues with NetworkManager resetting the hostname
# to the FQDN on DHCP renew.
if [ -x /bin/nmcli ]; then
nmcli general hostname "${new_host_name%%.*}"
fi

# Restart syslog to update the hostname if we're not using systemd.
# systemd rsyslog jobs wait for networking to finish starting and consequently
# syslog or rsyslog is running with the correct hostname.
Expand Down
2 changes: 1 addition & 1 deletion google_config/build_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function build_distro() {
--rpm-dist "${distro}" \
--url 'https://github.com/GoogleCloudPlatform/compute-image-packages' \
--vendor 'Google Compute Engine Team' \
--version '2.1.1' \
--version '2.1.2' \
"${COMMON_FILES[@]}" \
"${files[@]:2}"
}
Expand Down

0 comments on commit 34af307

Please sign in to comment.