6
0
Fork 0
This repository has been archived on 2022-03-14. You can view files and clone it, but cannot push or open issues or pull requests.
cdist-recycledcloud/type/__recycledcloud_gitea/manifest

21 lines
490 B
Bash

#!/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"