mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 06:21:08 +02:00
coreos-base/oem-vagrant: strip leading '-' from path
This commit is contained in:
parent
17b8e08044
commit
ed61fa75bb
@ -26,7 +26,7 @@ module VagrantPlugins
|
||||
temp.close
|
||||
|
||||
path = "/var/tmp/hostname.yml"
|
||||
path_esc = path.gsub("/", "-")
|
||||
path_esc = path.gsub("/", "-")[1..-1]
|
||||
comm.upload(temp.path, path)
|
||||
comm.sudo("systemctl start system-cloudinit@#{path_esc}.service")
|
||||
end
|
||||
|
@ -87,7 +87,7 @@ module VagrantPlugins
|
||||
temp.close
|
||||
|
||||
path = "/var/tmp/networks.yml"
|
||||
path_esc = path.gsub("/", "-")
|
||||
path_esc = path.gsub("/", "-")[1..-1]
|
||||
comm.upload(temp.path, path)
|
||||
comm.sudo("systemctl start system-cloudinit@#{path_esc}.service")
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user