diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-02-24 19:21:45 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-02-24 19:21:45 +0100 |
commit | 517e949e0024a988ca0d5a5f11dadbe4ca9acfe3 (patch) | |
tree | aebc87783f0c769f8e597166e78947ad85298671 /etc | |
parent | be496ccb3ef9553e1b641fd5370a47c38c68bd5f (diff) |
put: +arclight
Diffstat (limited to 'etc')
-rw-r--r-- | etc/functions/put | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/etc/functions/put b/etc/functions/put index b17663d..2e5390b 100644 --- a/etc/functions/put +++ b/etc/functions/put @@ -18,6 +18,14 @@ if [[ -z ${commands[curl]} ]]; then print -P "%B%F{yellow}curl not present, won't be able to check upload success%f%b" fi +function put_arclight { + hostname='arclight.derf0.net' + ssh_name='arclight' + target_dir='web/default/out/tmp' + server_prefix='https://arclight.derf0.net/tmp/' + max_size=0 +} + function put_epicentre { hostname='epicentre.derf0.net' ssh_name='epicentre' @@ -34,12 +42,11 @@ function put_chaosdorf { max_size=0 } -hosts=(epicentre chaosdorf) +hosts=(arclight epicentre chaosdorf) while [[ ${1} == -* ]] { case ${1} in -|--) shift; break ;; - -p) pic=1 ;; -r) make_random=1 ;; *) if [[ -n ${functions[put_${1#-}]} ]]; then @@ -66,10 +73,6 @@ if [[ -d ${1} ]] { remote_file=${file:t} -if (( pic )) { - hosts=(steel_pic) -} - if (( make_random )) { remote_file=$(mktemp -u XXXXXX) } |