Sha256: 033fc6bc9c6a46d112c7be60c52b1df7655a48e5f3bd2b159ff314af3dcbb186
Contents?: true
Size: 745 Bytes
Versions: 15
Compression:
Stored size: 745 Bytes
Contents
require 'vagrant/guest/debian' module Vagrant module Guest class Ubuntu < Debian def mount_shared_folder(name, guestpath, options) # Mount it like normal super # Emit an upstart event if upstart is available @vm.channel.sudo("[ -x /sbin/initctl ] && /sbin/initctl emit vagrant-mounted MOUNTPOINT=#{guestpath}") end def change_host_name(name) if !vm.channel.test("sudo hostname | grep '#{name}'") vm.channel.sudo("sed -i 's/.*$/#{name}/' /etc/hostname") vm.channel.sudo("sed -i 's@^\\(127[.]0[.]1[.]1[[:space:]]\\+\\)@\\1#{name} #{name.split('.')[0]} @' /etc/hosts") vm.channel.sudo("service hostname start") end end end end end
Version data entries
15 entries across 15 versions & 2 rubygems