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:
9d28528
)
oops, had broken this since we're inside a simple sftp job, not bash.
author
Chris Koeritz
<fred@gruntose.com>
Mon, 12 Mar 2012 01:44:32 +0000
(21:44 -0400)
committer
Chris Koeritz
<fred@gruntose.com>
Mon, 12 Mar 2012 01:44:32 +0000
(21:44 -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 5e8aa2e63ccc0eedcff7b0d3df7074c1f47c97ab..f227d7905a51c4e0be70563d37ebf3f57da84574 100644
(file)
--- a/
scripts/security/tell_zooty_our_ip.sh
+++ b/
scripts/security/tell_zooty_our_ip.sh
@@
-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