X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=bin%2Fkratochvil.vellum.cz-update;h=99b5c01545d015a2e1227225f948cf2feb44efeb;hb=a63b61163f2b94c6c3beaae9636b1d346e4e1bb2;hp=c32a5b4f64846f223db84c9a0cfa703c6c298d3a;hpb=723b98f5494c23fe7bcf021ef4024887c24e4122;p=nethome.git diff --git a/bin/kratochvil.vellum.cz-update b/bin/kratochvil.vellum.cz-update index c32a5b4..99b5c01 100755 --- a/bin/kratochvil.vellum.cz-update +++ b/bin/kratochvil.vellum.cz-update @@ -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"