Fix bored.dcgi for new db layout. - gopher-lawn - The gopher lawn gopher direct… | |
git clone git://bitreich.org/gopher-lawn/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhf… | |
Log | |
Files | |
Refs | |
Tags | |
--- | |
commit aa11f2c7f0c3d92013b95196aaf9be48ab267a50 | |
parent f4e5eb91b00a8a104596a4dcb75b059bec1d043a | |
Author: Christoph Lohmann <[email protected]> | |
Date: Fri, 28 Aug 2020 13:13:45 +0200 | |
Fix bored.dcgi for new db layout. | |
Diffstat: | |
M bitreich-lawn-random-link | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/bitreich-lawn-random-link b/bitreich-lawn-random-link | |
@@ -3,7 +3,7 @@ | |
# Thanks to parazyd for the idea! | |
# | |
-_f="$(find /br/gopher/lawn/*/ -name 'index.gph' | shuf -n1)" | |
+_f="$(find /br/gopher/lawn/c/ | shuf -n1)" | |
_u="$(grep '^\[[0-9a-zA-Z]\{1\}|.*\]' $_f | head -n-1 | shuf -n1)" | |
_af="$(printf "%s\n" "$_u" | sed 's,|server|port\],|bitreich.org|70\],g')" | |