mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-28 01:41:25 +02:00
List of fixes: - Do not fail to add the user 'gogs' to the group 'www-data', explicitely creates it first. - Explicitely pass the path to the .ini file to the gogs binary. - Use openrc-run instead of runscript. - Patch the list.tmpl template not to cause a fatal error when gogs starts.
16 lines
341 B
Plaintext
16 lines
341 B
Plaintext
#!/sbin/openrc-run
|
|
|
|
name=gogs
|
|
conffile="$GOGS_CUSTOM/conf/app.ini"
|
|
command="/usr/bin/gogs"
|
|
command_args="web -c $conffile"
|
|
start_stop_daemon_args="${GOGS_USER:+--user} $GOGS_USER --env GOGS_CUSTOM=$GOGS_CUSTOM"
|
|
pidfile="/var/run/gogs.pid"
|
|
command_background="yes"
|
|
|
|
depend() {
|
|
use logger dns
|
|
need net
|
|
after firewall
|
|
}
|