Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure sysctl kernel.hostname set correctly #55

Merged
merged 1 commit into from
Apr 24, 2017

Conversation

mmrwoods
Copy link
Contributor

Code to set kernel.hostname in /etc/sysctl.conf didn't allow for a
temporary change of hostname that is later reverted. For example, if
the hostname is originally set to foo.example.com, is then changed to
bar.example.com and later reverted to foo.example.com, the last
kernel.hostname entry in /etc/sysctl.conf will remain bar.example.com,
because the guard condition looks for any match in /etc/sysctl.conf

Fixed by editing existing entries where applicable and updating the
guard condition to find and match on the last kernel.hostname line

Code to set kernel.hostname in /etc/sysctl.conf didn't allow for a
temporary change of hostname that is later reverted. For example, if
the hostname is originally set to foo.example.com, is then changed to
bar.example.com and later reverted to foo.example.com, the last
kernel.hostname entry in /etc/sysctl.conf will remain bar.example.com,
because the guard condition looks for any match in /etc/sysctl.conf

Fixed by editing existing entries where applicable and updating the
guard condition to find and match on the last kernel.hostname line
@mburns
Copy link
Member

mburns commented Apr 24, 2017

👍

@mburns mburns merged commit 0b79d85 into 3ofcoins:develop Apr 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants