void-packages/srcpkgs/Gokapi/files/gokapi/run
classabbyamp 351646d5bd *: add exec 2>&1 to all existing services
except when it already exists, of course
2023-02-09 21:36:13 -05:00

12 lines
198 B
Bash

#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf
: ${USER:=_gokapi}
: ${GROUP:=_gokapi}
: ${HOME:=/var/lib/gokapi}
export USER GROUP HOME
cd "${HOME}" && exec chpst -u ${USER}:${GROUP} gokapi 2>&1