blob: 8dae045d3ee98ee9ba7b48f882862d591e6d1b3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/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
|