From 4c1fbabdbaf31eaf0ecef8f1abc16e781b5ece47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Logerais=20=28Numericable=20-=20Ing=C3=A9nierie?= =?UTF-8?q?=20Syst=C3=A8me=29?= Date: Wed, 5 Feb 2014 11:44:15 +0100 Subject: [PATCH 1/2] Modified profile.d/tsocks --- profile.d/tsocks | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/profile.d/tsocks b/profile.d/tsocks index 49d3f2b..5a10ee8 100644 --- a/profile.d/tsocks +++ b/profile.d/tsocks @@ -1,4 +1,6 @@ #!/bin/bash # Proxy -export TSOCKS_CONF_FILE=~/.config/tsocks/tsocks.conf +if [ -x /usr/bin/tsocks ] then + export TSOCKS_CONF_FILE=~/.config/tsocks/tsocks.conf +fi From ed48c1a1670a53f4dea83424e4fe6af8c8a1c6c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Logerais=20=28Numericable=20-=20Ing=C3=A9nierie?= =?UTF-8?q?=20Syst=C3=A8me=29?= Date: Wed, 5 Feb 2014 22:03:32 +0100 Subject: [PATCH 2/2] Fix syntax --- profile.d/tsocks | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/profile.d/tsocks b/profile.d/tsocks index 5a10ee8..b4ef248 100644 --- a/profile.d/tsocks +++ b/profile.d/tsocks @@ -1,6 +1,7 @@ #!/bin/bash # Proxy -if [ -x /usr/bin/tsocks ] then +if [ -x /usr/bin/tsocks ] +then export TSOCKS_CONF_FILE=~/.config/tsocks/tsocks.conf fi