#!/bin/sh

set -eu

sitezone="$1"

source /root/config/private/config/hostinfo/${sitezone}

sed -e 's/@sitename@/'"${sitename}"'/g'            \
	-e 's/@sitezone@/'"${sitezone}"'/g'        \
	-e 's/@sitemoto@/'"${sitemoto}"'/g'        \
	-e 's/@sitedesc@/'"${sitedesc}"'/g'        \
	-e '/@@@/,$d'                              \
	"$1"

cat /root/config/private/config/cgit/cgitrc.${sitezone}.conf
