forked from tilde.black/ops
adding gemini template and cron processor
This commit is contained in:
parent
6406992ce7
commit
f23ebaf336
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
all_users=$(grep /home < /etc/passwd | awk -F: '{print $1}')
|
||||
current_dir=$(dirname "$(readlink -f "$0")")
|
||||
template_dir="${current_dir}/templates/gemini"
|
||||
output="${template_dir}/users.gemini"
|
||||
printf "[Users]\\n" > "$output"
|
||||
printf "%s" "$all_users" | while read -r n; do
|
||||
target="/var/gemini/users/${n}"
|
||||
if find "$target" -mindepth 1 -print -quit 2>/dev/null | grep -q .; then
|
||||
printf "=> /users/%s ~%s\\n" "$n" "$n" >> "$output"
|
||||
fi
|
||||
done
|
||||
|
||||
cat "${template_dir}/head.gemini" "${output}" > /var/gemini/.gemini
|
|
@ -0,0 +1,34 @@
|
|||
_______ __ __ __ __ __ __
|
||||
| |__| .--| .-----. | |--| .---.-.----| |--.
|
||||
|.| | | | | _ | -__|__| _ | | _ | __| <
|
||||
`-|. |-|__|__|_____|_____|__|_____|__|___._|____|__|__|
|
||||
|: |
|
||||
|::.|
|
||||
`---'
|
||||
|
||||
The black hole of the tildeverse
|
||||
|
||||
,+@@@$$$$@@@+=
|
||||
,@$$$$$$$$$$$$$$$$$$@=
|
||||
,@$$$$$$&%******%&$$$$$$$$@=
|
||||
,@$$$$*^ `*$$$$$$@.
|
||||
/$$$@` *$$$$$+
|
||||
/$$@ ,//` ,/@@$$$@+. '= *$$$$%
|
||||
$$* ,@@` ,$@*` `"%$, "@ `$$$$,
|
||||
/$* /$@ /@` `$@ `$= `$$$$
|
||||
$$ $$ $ /@$$$+ $ $$, +$$$
|
||||
$@ $@ % $$$$$$ @ /$$ '$$$
|
||||
'@ %@ . . `%$$%` / $$$ .$$*
|
||||
$ * = @$$* /$@
|
||||
, `% ,@$$/ ,$@
|
||||
%@, ,/$$$@" ,$*
|
||||
*$$@@@@@@$$$$$*` /@
|
||||
`"*****"` /*
|
||||
|
||||
|
||||
|
||||
Tilde.Black is proud to support the emerging Gemini protocol.
|
||||
|
||||
=> gemini://zaibatsu.circumlunar.space Read more about Gemini
|
||||
|
||||
User pages will be coming soon.
|
Loading…
Reference in New Issue