adding gemini template and cron processor

This commit is contained in:
Tilde Black Admin 2019-08-23 21:29:31 +00:00
parent 6406992ce7
commit f23ebaf336
2 changed files with 49 additions and 0 deletions

15
geminiroot.sh Executable file
View File

@ -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

View File

@ -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.