Import __recycledcloud_gitea from dot-cdist
This commit is contained in:
parent
6c9f7b4e3d
commit
4ac1cda5d2
3 changed files with 37 additions and 0 deletions
17
type/__recycledcloud_gitea/files/home.tmpl
Normal file
17
type/__recycledcloud_gitea/files/home.tmpl
Normal 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" .}}
|
20
type/__recycledcloud_gitea/manifest
Normal file
20
type/__recycledcloud_gitea/manifest
Normal 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"
|
0
type/__recycledcloud_gitea/singleton
Normal file
0
type/__recycledcloud_gitea/singleton
Normal file
Reference in a new issue