]> git.armaanb.net Git - bin.git/commitdiff
pubup: change subdomain and variable expansion
authorArmaan Bhojwani <me@armaanb.net>
Sat, 1 May 2021 22:58:27 +0000 (18:58 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Sat, 1 May 2021 22:58:27 +0000 (18:58 -0400)
pubup

diff --git a/pubup b/pubup
index 3f4b8c38aaa6cd308067e62e99192478695d77f0..1b6e85c73e663031b6631afbc2831803ef1577aa 100755 (executable)
--- a/pubup
+++ b/pubup
@@ -1,4 +1,4 @@
 #!/usr/bin/env sh
 
-rsync "$1" root@armaanb.net:${2:-/var/www/armaanb.net-http/}
-echo "https://armaanb.net/"$(basename "$1") | tee /dev/tty | xclip -sel c
+rsync "$1" "root@armaanb.net:/var/www/ftp/pub/${2}"
+echo "https://ftp.armaanb.net/pub/"$(basename "$1") | tee /dev/tty | xclip -sel c