Blame public/fs/etc/cgit.d/cgitrc-cfg.sh

root@culturestrings 76bf6e
#!/bin/sh
root@culturestrings 76bf6e
root@culturestrings 76bf6e
set -eu
root@culturestrings 76bf6e
root@culturestrings 76bf6e
sitezone="$1"
root@culturestrings 76bf6e
root@culturestrings 76bf6e
source /root/config/private/config/hostinfo/${sitezone}
root@culturestrings 76bf6e
root@culturestrings 76bf6e
sed -e 's/@sitename@/'"${sitename}"'/g'            \
root@culturestrings 76bf6e
	-e 's/@sitezone@/'"${sitezone}"'/g'        \
root@culturestrings 76bf6e
	-e 's/@sitemoto@/'"${sitemoto}"'/g'        \
root@culturestrings 76bf6e
	-e 's/@sitedesc@/'"${sitedesc}"'/g'        \
root@culturestrings 76bf6e
	-e '/@@@/,$d'                              \
root@culturestrings 76bf6e
	"$1"
root@culturestrings 76bf6e
root@culturestrings 76bf6e
cat /root/config/private/config/cgit/cgitrc.${sitezone}.conf