6
0
Fork 0

Import __recycledcloud_gitea from dot-cdist

This commit is contained in:
Timothée Floure 2021-01-13 16:49:46 +01:00
parent 6c9f7b4e3d
commit 4ac1cda5d2
Signed by: tfloure
GPG key ID: 4502C902C00A1E12
3 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,17 @@
{{template "base/head" .}}
<div class="home">
<div class="ui stackable middle very relaxed page grid">
<div class="sixteen wide center aligned centered column">
<div>
<img class="logo" src="{{StaticUrlPrefix}}/img/gitea-lg.png" />
</div>
<div class="hero">
<h1 class="ui icon header title">
{{AppName}}
</h1>
<p>Please refer to the <a href="https://wiki.recycled.cloud/">wiki</a> for documentation.</p>
</div>
</div>
</div>
</div>
{{template "base/footer" .}}

View file

@ -0,0 +1,20 @@
#!/bin/sh
os=$(cat "${__global:?}/explorer/os")
case "$os" in
alpine)
__package gitea
template_dir=/var/lib/gitea/custom/templates
;;
*)
echo "$os is not supported by this type. Exiting" >&2
exit 1
;;
esac
require="__package/gitea" __start_on_boot gitea
require="__package/gitea" __directory --parents "$template_dir"
require="__directory/$template_dir" __file "$template_dir/home.tmpl" \
--source "$__type/files/home.tmpl" --mode 0644 \
--onchange "service gitea restart"

View file