tchange autoup domain - scripts - random scripts
HTML git clone git://parazyd.org/scripts.git
DIR Log
DIR Files
DIR Refs
---
DIR commit 37fb7497d2762018f87c74f04ffe258c3fdbafcb
DIR parent 23d8c0fc0a4a5805734ea18bc510059fb6ef8a33
HTML Author: parazyd <parazyd@dyne.org>
Date: Thu, 22 Feb 2018 01:40:13 +0100
change autoup domain
Diffstat:
M autoup | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git a/autoup b/autoup
t@@ -1,6 +1,6 @@
#!/bin/sh
-server=parazyd.cf
-webroot=/home/parazyd/public_html/parazyd.cf/pub
+server=parazyd.org
+webroot=/home/parazyd/public_html/parazyd.org/pub
webdir=dev/random
case "$1" in
t@@ -24,7 +24,7 @@ test -z "$1" && exit 1 || filename=$(basename $1)
case "$filename" in
*_scrot.png|*_scrot.jpg)
webdir=tmp/screenshots
- num=$(echo $(lynx -dump https://parazyd.cf/pub/tmp/screenshots \
+ num=$(echo $(lynx -dump https://$server/pub/tmp/screenshots \
| tail -n1 | tr -d '[a-z]./:' | awk '{print $2}') + 1 | bc)
if [ "$num" -lt 100 ]; then
num="00$num"