Révision 992f60d0
Ajouté par Renato Botelho il y a plus de 9 ans
etc/inc/services.inc | ||
---|---|---|
2272 | 2272 |
$crontab_contents .= "# " .gettext( "Created:") . " " . date("F j, Y, g:i a") . "\n"; |
2273 | 2273 |
$crontab_contents .= "#\n"; |
2274 | 2274 |
|
2275 |
if (isset($config['system']['proxyurl']) && !empty($config['system']['proxyurl'])) { |
|
2276 |
$http_proxy = $config['system']['proxyurl']; |
|
2277 |
if (isset($config['system']['proxyport']) && !empty($config['system']['proxyport'])) |
|
2278 |
$http_proxy .= ':' . $config['system']['proxyport']; |
|
2279 |
$crontab_contents .= "HTTP_PROXY={$http_proxy}"; |
|
2280 |
} |
|
2281 |
|
|
2275 | 2282 |
foreach ($config['cron']['item'] as $item) { |
2276 | 2283 |
$crontab_contents .= "\n{$item['minute']}\t"; |
2277 | 2284 |
$crontab_contents .= "{$item['hour']}\t"; |
Formats disponibles : Unified diff
Set proxy env vars on interactive shell and also on crontab to make all scripts be able to use it. Ticket #3789