Skip to content
Snippets Groups Projects
Verified Commit a4800956 authored by Vincent Sellier's avatar Vincent Sellier
Browse files

Fix hostname configuration

parent 7c362810
No related branches found
No related tags found
1 merge request!3cea: Add preseeding for new servers
......@@ -84,6 +84,8 @@ echo ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII5oO0jj/IeV04osZ/iaKBZdnuqdziJD3x1VOht
echo ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFBFC8GmLbjltvV2t4M3YgdRJE6GVG1Jub0OsF/Bw6// gsamson >> /home/swh/.ssh/authorized_keys
chown -R swh:swh /home/swh/.ssh
hostnamectl hostname {{HOSTNAME}}
sed -i -e '/127\.0\.1\.1/d' /etc/hosts
echo 127.0.1.1 {{HOSTNAME}} >>/etc/hosts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment