aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gogs/gogs.initd
diff options
context:
space:
mode:
author7heo <7heo@mail.com>2016-07-04 14:52:46 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-07-04 15:30:22 +0200
commit34793a33c9f6bf9f947ac625bc8f2fad9f29145c (patch)
treec4dca961802fde9471dfe3ac97a04308db2ff011 /testing/gogs/gogs.initd
parent9236df622ce18dba92ce68e543981a817a2647a0 (diff)
downloadaports-34793a33c9f6bf9f947ac625bc8f2fad9f29145c.tar.bz2
aports-34793a33c9f6bf9f947ac625bc8f2fad9f29145c.tar.xz
testing/gogs: multiple fixes
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.
Diffstat (limited to 'testing/gogs/gogs.initd')
-rw-r--r--testing/gogs/gogs.initd5
1 files changed, 3 insertions, 2 deletions
diff --git a/testing/gogs/gogs.initd b/testing/gogs/gogs.initd
index 14134718a1..b4ac34b3c8 100644
--- a/testing/gogs/gogs.initd
+++ b/testing/gogs/gogs.initd
@@ -1,8 +1,9 @@
-#!/sbin/runscript
+#!/sbin/openrc-run
name=gogs
+conffile="$GOGS_CUSTOM/conf/app.ini"
command="/usr/bin/gogs"
-command_args="web"
+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"