projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
941a1c4
)
making this be quieter.
author
Chris Koeritz
<fred@gruntose.com>
Mon, 12 Mar 2012 01:17:36 +0000
(21:17 -0400)
committer
Chris Koeritz
<fred@gruntose.com>
Mon, 12 Mar 2012 01:17:36 +0000
(21:17 -0400)
scripts/security/tell_zooty_our_ip.sh
patch
|
blob
|
history
diff --git
a/scripts/security/tell_zooty_our_ip.sh
b/scripts/security/tell_zooty_our_ip.sh
index f227d7905a51c4e0be70563d37ebf3f57da84574..5e8aa2e63ccc0eedcff7b0d3df7074c1f47c97ab 100644
(file)
--- a/
scripts/security/tell_zooty_our_ip.sh
+++ b/
scripts/security/tell_zooty_our_ip.sh
@@
-33,7
+33,9
@@
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
-mkdir gen
+if [ ! -d gen ]; then
+ mkdir gen
+fi
cd gen
put $ip_file $(hostname | sed -e "s/\..*$//")_ip.txt
eof