From 517e949e0024a988ca0d5a5f11dadbe4ca9acfe3 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 24 Feb 2021 19:21:45 +0100 Subject: put: +arclight --- etc/functions/put | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'etc/functions/put') 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) } -- cgit v1.2.3