summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-25 20:51:13 -0400
committerJune McEnroe <june@causal.agency>2021-09-25 20:51:13 -0400
commitcd5d0726bf0a40b7c6595f7134d0ea9d1b145d5f (patch)
treef79aaf688a39af761f36c9e50602cd594e3d5b8a /bin
parentDisable HashKnownHosts (diff)
downloadsrc-cd5d0726bf0a40b7c6595f7134d0ea9d1b145d5f.tar.gz
src-cd5d0726bf0a40b7c6595f7134d0ea9d1b145d5f.zip
Update root path in up.sh
Diffstat (limited to '')
-rw-r--r--bin/up.sh3
1 files changed, 2 insertions, 1 deletions
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}"
 }