You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
510 B
17 lines
510 B
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
export CGIT_TITLE=${CGIT_TITLE:="TEST TITLE - CHANGE ME"}
|
|
export CGIT_DESC=${CGIT_DESC:="TEST DESC"}
|
|
export CGIT_VROOT=${CGIT_VROOT:="/"}
|
|
export CGIT_FQDN=${CGIT_FQDN:="git.changeme.com"}
|
|
export CGIT_SECTION_FROM_STARTPATH=${CGIT_SECTION_FROM_STARTPATH:=1}
|
|
|
|
CGIT_VARS='$CGIT_TITLE:$CGIT_DESC:$CGIT_VROOT:$CGIT_SECTION_FROM_STARTPATH'
|
|
|
|
envsubst "$CGIT_VARS" < /etc/cgitrc.template > /etc/cgitrc
|
|
|
|
/usr/bin/spawn-fcgi -s /tmp/fcgiwrap.socket /usr/bin/fcgiwrap
|
|
|
|
/usr/sbin/nginx -g "daemon off;"
|
|
|