void-packages/srcpkgs/Gokapi/files/gokapi/run

12 lines
188 B
Bash

#!/bin/sh
[ -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