service/services/gitea.spec

14 lines
436 B
RPMSpec
Raw Normal View History

command: gitea -C . -w . -c ./custom/conf/app.ini
2019-10-24 15:54:15 +02:00
consumes: postgresql
%directory ${SERVICE_ROOT}/custom/conf
name: working directory
2019-10-24 15:54:15 +02:00
%configuration gitea.cfg ${SERVICE_ROOT}/custom/conf/app.ini
2019-10-24 15:54:15 +02:00
%pre-start
2019-10-24 15:54:15 +02:00
name: gitea database creation
# 'command' is run only if this directory doesn't exist
unless-file: ${SERVICE_ROOT}/db_is_setup
command: pg_create_user.sh create_user_and_db && touch ${SERVICE_ROOT}/db_is_setup