Now also $SSH2_CLIENT besides original $SSH_CLIENT
authorshort <>
Sat, 22 Sep 2001 06:09:27 +0000 (06:09 +0000)
committershort <>
Sat, 22 Sep 2001 06:09:27 +0000 (06:09 +0000)
bin/kratochvil.vellum.cz-update

index c32a5b4..99b5c01 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 
 lockfile="/home/short/bin/kratochvil.vellum.cz-update.lock"
-kratochvil_IP="`echo "$SSH_CLIENT"|cut -d ' ' -f 1`"
+kratochvil_IP="`echo "${SSH_CLIENT:-$SSH2_CLIENT}"|cut -d ' ' -f 1`"
 kratochvil_IP_back="`echo "$kratochvil_IP"|sed 's/\./\\\\./g'`"
 named_dir="/etc/named"
 cf_file="$named_dir/cf/kratochvil.vellum.cz"