service/services/gitea.spec
Luka Vandervelden 87929be026 Updating service definitions format.
THIS IS A BREAKING CHANGE

Hopefully, this change will make it easier to remove data on service
removal, but also to export and backup service data and to add
per-service system users.

A few obsolete service definitions have also been updated to the new
format.

Testing is still incomplete, you may want to wait a few commits before
using this.
2019-11-08 14:36:59 +01:00

24 lines
641 B
RPMSpec

command: gitea -C . -w . -c gitea.cfg
consumes: postgresql, http?
requires-domain: true
ports: http
#%directory ${SERVICE_ROOT}/custom/conf
# name: working directory
# configuration: true
%file db-is-setup
name: postgresql database
# 'command' is run only if this directory doesn't exist
creation-command: pg_create_user.sh create_user_and_db && touch db-is-setup
deletion-command: pg_remove_user.sh bla bla bla && rm db-is-setup
export-command: pg_export_user.sh bla bla bla # FIXME: Where/how does it export?
# With syntaxic sugar.
%configuration gitea.cfg
#%database
# type: postgresql
# from-token: postgresql