You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
306 B

  1. #!/bin/bash
  2. #
  3. OLD_NAME=vague-client
  4. HNAME=vpnserver
  5. sed -i "s/$OLD_NAME/$HNAME/g" /etc/hostname
  6. sed -i "s/$OLD_NAME/$HNAME/g" /etc/hosts
  7. hostname $HNAME
  8. sed -i "s/#VAGRANT-END/up route add -net 192.168.0.0\/16 gw 192.168.2.254 dev enp0s8/g" /etc/network/interfaces
  9. #/etc/init.d/networking restart
  10. exit