summaryrefslogtreecommitdiff
path: root/etc/functions
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-07-14 21:17:36 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-07-14 21:17:36 +0200
commit444081887459f5afb59f70ea13c9343d72019750 (patch)
treec52da52aef5546ecfe87dc8271905fc0a63cab5d /etc/functions
parent7b8e71cfb2006579a7204aaa5a58ff25bebb7d85 (diff)
put: Add steel
Diffstat (limited to 'etc/functions')
-rw-r--r--etc/functions/put14
1 files changed, 11 insertions, 3 deletions
diff --git a/etc/functions/put b/etc/functions/put
index c178497..940c22c 100644
--- a/etc/functions/put
+++ b/etc/functions/put
@@ -2,7 +2,7 @@
## put - make a file available via HTTP
## supports as many 'failover' hosts as an array can hold
## Usage: put <file>
-## Copyright (C) 2008, 2009 by Daniel Friesel <derf@derf.homelinux.org>
+## Copyright © 2008 - 2010 by Daniel Friesel <derf@derf.homelinux.org>
## License: WTFPL <http://sam.zoy.org/wtfpl>
typeset hostname ssh_name
@@ -22,7 +22,15 @@ function put_aneurysm {
ssh_name='aneurysm'
target_dir='public_html/tmp/'
server_prefix='http://derf.homelinux.org/tmp/'
- max_size=2000000
+ max_size=700000
+}
+
+function put_steel {
+ hostname='steel.derf0.net'
+ ssh_name='steel'
+ target_dir='public_html/tmp/'
+ server_prefix='http://steel.derf0.net/tmp/'
+ max_size=0
}
function put_chaosdorf {
@@ -33,7 +41,7 @@ function put_chaosdorf {
max_size=0
}
-hosts=(aneurysm chaosdorf)
+hosts=(aneurysm steel chaosdorf)
while [[ ${1} == -* ]] {
case ${1} in