aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--grpmi/curl_download/curl_download.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/grpmi/curl_download/curl_download.pm b/grpmi/curl_download/curl_download.pm
index 7c6ec472..7a3e07fb 100644
--- a/grpmi/curl_download/curl_download.pm
+++ b/grpmi/curl_download/curl_download.pm
@@ -24,9 +24,11 @@ sub readproxy {
sub writeproxy {
my ($proxy, $proxy_user) = @_;
- output("/etc/urpmi/proxy.cfg",
+ my $f = '/etc/urpmi/proxy.cfg';
+ output($f,
if_($proxy, "http_proxy=$proxy\n"),
if_($proxy_user, "proxy_user=$proxy_user\n"));
+ chmod 0600, $f;
}
sub download {