X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsecurity%2Ftell_zooty_our_ip.sh;h=359050b419edf1c85187b3796f89850fd4a5c70b;hb=47898c86d34ba851288b62281c14f18f7090df19;hp=9c5b02a1fe1daddb5fac60d059a079a09a101f41;hpb=a554566fc3710cdffa9a829062f33454605a7589;p=feisty_meow.git diff --git a/scripts/security/tell_zooty_our_ip.sh b/scripts/security/tell_zooty_our_ip.sh index 9c5b02a1..359050b4 100644 --- a/scripts/security/tell_zooty_our_ip.sh +++ b/scripts/security/tell_zooty_our_ip.sh @@ -5,7 +5,7 @@ #hmmm: none of the user info below will work for others: parameterize it. -server=zooty.koeritz.com +server=serene.feistymeow.org username=fred local_user=fred tempdir=/tmp # where we generate our files. @@ -17,7 +17,7 @@ if [ ! -z "$1" ]; then soundfile=$1 fi -ip_file="$(mktemp ${tempdir}/$(hostname | sed -e "s/\..*$//")_ip.XXXXXX)_${USER}" +ip_file="$(mktemp ${tempdir}/ip_${USER}_$(hostname | sed -e "s/\..*$//").XXXXXX)" # get live ip address pushd $tempdir @@ -38,5 +38,7 @@ cd gen put $ip_file $(hostname | sed -e "s/\..*$//")_ip.txt eof +\rm -f "$ip_file" + popd