From 4ac1cda5d200878d72e033c81b5bcfdf80031c1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Floure?= Date: Wed, 13 Jan 2021 16:49:46 +0100 Subject: [PATCH] Import __recycledcloud_gitea from dot-cdist --- type/__recycledcloud_gitea/files/home.tmpl | 17 +++++++++++++++++ type/__recycledcloud_gitea/manifest | 20 ++++++++++++++++++++ type/__recycledcloud_gitea/singleton | 0 3 files changed, 37 insertions(+) create mode 100644 type/__recycledcloud_gitea/files/home.tmpl create mode 100644 type/__recycledcloud_gitea/manifest create mode 100644 type/__recycledcloud_gitea/singleton diff --git a/type/__recycledcloud_gitea/files/home.tmpl b/type/__recycledcloud_gitea/files/home.tmpl new file mode 100644 index 0000000..3d797b1 --- /dev/null +++ b/type/__recycledcloud_gitea/files/home.tmpl @@ -0,0 +1,17 @@ +{{template "base/head" .}} +
+
+
+
+ +
+
+

+ {{AppName}} +

+

Please refer to the wiki for documentation.

+
+
+
+
+{{template "base/footer" .}} diff --git a/type/__recycledcloud_gitea/manifest b/type/__recycledcloud_gitea/manifest new file mode 100644 index 0000000..c882ef8 --- /dev/null +++ b/type/__recycledcloud_gitea/manifest @@ -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" diff --git a/type/__recycledcloud_gitea/singleton b/type/__recycledcloud_gitea/singleton new file mode 100644 index 0000000..e69de29