switched server, since zooty is still the old machine we're migrating from.
[feisty_meow.git] / scripts / security / tell_zooty_our_ip.sh
index 5e8aa2e63ccc0eedcff7b0d3df7074c1f47c97ab..359050b419edf1c85187b3796f89850fd4a5c70b 100644 (file)
@@ -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.
@@ -33,9 +33,7 @@ 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 <<eof
-if [ ! -d gen ]; then
-  mkdir gen
-fi
+mkdir gen
 cd gen
 put $ip_file $(hostname | sed -e "s/\..*$//")_ip.txt
 eof