Projet

Général

Profil

« Précédent | Suivant » 

Révision 992f60d0

Ajouté par Renato Botelho il y a plus de 9 ans

Set proxy env vars on interactive shell and also on crontab to make all scripts be able to use it. Ticket #3789

Voir les différences:

root/.shrc
1
HTTP_PROXY=`/usr/local/bin/xmllint --xpath 'string(//pfsense/system/proxyurl)' /conf/config.xml`
2
if [ "${HTTP_PROXY}" != "" ]; then
3
	HTTP_PROXY_PORT=`/usr/local/bin/xmllint --xpath 'string(//pfsense/system/proxyport)' /conf/config.xml`
4
	if [ "${HTTP_PROXY_PORT}" != "" ]; then
5
		HTTP_PROXY="${HTTP_PROXY}:${HTTP_PROXY_PORT}"
6
	fi
7
	export HTTP_PROXY
8
fi
9

  
1 10
# Detect interactive logins and display the shell
2 11
if [ -n "${SSH_TTY}" -o "${TERM}" = "cons25" ]; then
3 12
	/etc/rc.initial

Formats disponibles : Unified diff