X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsecurity%2Ftell_zooty_our_ip.sh;h=5e8aa2e63ccc0eedcff7b0d3df7074c1f47c97ab;hb=9d28528d6b396f5e1da43eb3e77b8a5123e8520b;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..5e8aa2e6 100644 --- a/scripts/security/tell_zooty_our_ip.sh +++ b/scripts/security/tell_zooty_our_ip.sh @@ -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 @@ -33,10 +33,14 @@ echo "my ip is [$my_ip]" # gets us access to the server. this needs to be on the local machine # for sftp to run without a login prompt. sudo -u $local_user sftp $username@$server <