Skip to content

Commit

Permalink
Style nitpick
Browse files Browse the repository at this point in the history
  • Loading branch information
tmatilai committed Nov 30, 2014
1 parent 33bd66d commit a7110ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/vagrant-proxyconf/cap/coreos/docker_proxy_conf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ def self.docker_proxy_conf(machine)
return false unless Util.which(machine, 'docker')

machine.communicate.tap do |comm|
src_file='/usr/lib/systemd/system/docker.service'
dst_file='/etc/systemd/system/docker.service'
tmp_file='/tmp/docker.service'
env_file='EnvironmentFile=-\/etc\/default\/docker'
src_file = '/usr/lib/systemd/system/docker.service'
dst_file = '/etc/systemd/system/docker.service'
tmp_file = '/tmp/docker.service'
env_file = 'EnvironmentFile=-\/etc\/default\/docker'
comm.sudo("sed -e 's/\\[Service\\]/[Service]\\n#{env_file}/g' #{src_file} > #{tmp_file}")
unless comm.test("diff #{tmp_file} #{dst_file}")
# update config and restart docker when config changed
Expand Down

0 comments on commit a7110ea

Please sign in to comment.