Commit 643a8794 by Őry Máté

devenv: do not change hostname again

parent 4573294f
#!/bin/bash #!/bin/bash
nev=dev-$(hostname) nev=dev-$(hostname|tr -dc 0-9)
sudo sed -i /etc/hosts -e "/127.0.1.1/ s/.*/127.0.1.1 $nev.cloud.ik.bme.hu $nev/" sudo sed -i /etc/hosts -e "/127.0.1.1/ s/.*/127.0.1.1 $nev.cloud.ik.bme.hu $nev/"
sudo tee /etc/hostname <<<$nev sudo tee /etc/hostname <<<$nev
sudo hostname $nev sudo hostname $nev
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment