Skip to content

Commit

Permalink
Read the current proxy configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Aug 21, 2023
1 parent 250850c commit 3493147
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/lib/agama/proxy_setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def write
end

def install
return unless proxy
Proxy.Read
return unless Proxy.enabled

copy_files
add_packages
Expand All @@ -121,6 +122,7 @@ def add_packages
end

def copy_files
log.info "Copying proxy configuration to the target system"
FileUtils.cp(CONFIG_PATH, File.join(Yast::Installation.destdir, CONFIG_PATH))
end
end
Expand Down

0 comments on commit 3493147

Please sign in to comment.