From 59ae83ab809974a70dcf70d8ab00f37c78044890 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 25 Sep 2021 20:51:13 -0400 Subject: Update root path in up.sh --- bin/up.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/up.sh b/bin/up.sh index 8febee95..92e0f110 100644 --- a/bin/up.sh +++ b/bin/up.sh @@ -2,6 +2,7 @@ set -eu readonly Host='temp.causal.agency' +readonly Root='/var/www' upload() { src=$1 @@ -9,7 +10,7 @@ upload() { ts=$(date +'%s') rand=$(openssl rand -hex 4) url=$(printf '%s/%x%s.%s' "$Host" "$ts" "$rand" "$ext") - scp -q "$src" "${Host}:/usr/local/www/${url}" + scp -q "$src" "${Host}:${Root}/${url}" echo "https://${url}" } -- cgit 1.4.1