Tidied up the tinyproxy integration and added env vars and documentation

This commit is contained in:
Jeremy Andrews
2017-06-17 15:09:17 +12:00
parent 894d36e4af
commit af699006c7
7 changed files with 33 additions and 127 deletions

View File

@@ -13,10 +13,11 @@ fi
if [ $1 \< 1024 ];
then
echo "$1 is lower than 1024. Ports below 1024 are not permitted.";
echo "tinyproxy: $1 is lower than 1024. Ports below 1024 are not permitted.";
exit 1
fi;
echo "Setting tinyproxy port to $1";
sed -i -e"s,^Port .*,Port $1," $PROXY_CONF
exit 0