- Stop the autoconfery from warning about defining variables
conditionally and unconditionally.
- Honour configure option --sysconfdir. (RADSECPROXY-31)
- - Other bugs. (RADSECPROXY-26, -28, -34, -35)
+ - Other bugs. (RADSECPROXY-26, -28, -34, -35, -39)
2011-10-08 1.5
New features:
HOSTCMD=$(command -v host)
dig_it_srv() {
- ${DIGCMD} +short srv $SRV_HOST | sort -k1 |
+ ${DIGCMD} +short srv $SRV_HOST | sort -n -k1 |
while read line; do
set $line ; PORT=$3 ; HOST=$4
/bin/echo -e "\thost ${HOST%.}:${PORT}"
}
dig_it_naptr() {
- ${DIGCMD} +short naptr ${REALM} | grep x-eduroam:radius.tls | sort -k1 |
+ ${DIGCMD} +short naptr ${REALM} | grep x-eduroam:radius.tls | sort -n -k1 |
while read line; do
set $line ; TYPE=$3 ; HOST=$6
if [ "$TYPE" = "\"s\"" ]; then
}
host_it_srv() {
- ${HOSTCMD} -t srv $SRV_HOST | sort -k5 |
+ ${HOSTCMD} -t srv $SRV_HOST | sort -n -k5 |
while read line; do
set $line ; PORT=$7 ; HOST=$8
/bin/echo -e "\thost ${HOST%.}:${PORT}"
}
host_it_naptr() {
- ${HOSTCMD} -t naptr ${REALM} | grep x-eduroam:radius.tls | sort -k5 |
+ ${HOSTCMD} -t naptr ${REALM} | grep x-eduroam:radius.tls | sort -n -k5 |
while read line; do
set $line ; TYPE=$7 ; HOST=${10}
if [ "$TYPE" = "\"s\"" ]; then
HOSTCMD=$(command -v host)
dig_it() {
- ${DIGCMD} +short srv _radsec._tcp.${REALM} | sort -k1 |
+ ${DIGCMD} +short srv _radsec._tcp.${REALM} | sort -n -k1 |
while read line ; do
set $line ; PORT=$3 ; HOST=$4
echo -e "\thost ${HOST%.}:${PORT}"
}
host_it() {
- ${HOSTCMD} -t srv _radsec._tcp.${REALM} | sort -k5 |
+ ${HOSTCMD} -t srv _radsec._tcp.${REALM} | sort -n -k5 |
while read line ; do
set $line ; PORT=$7 ; HOST=$8
echo -e "\thost ${HOST%.}:${PORT}"