Blame public/fs/etc/pagure/pagure-cfg.sh
|
root@culturestrings |
11a554 |
#!/bin/sh
|
|
root@culturestrings |
11a554 |
|
|
root@culturestrings |
11a554 |
set -eu
|
|
root@culturestrings |
11a554 |
|
|
root@culturestrings |
0a05a5 |
sitezone="$1"
|
|
root@culturestrings |
0a05a5 |
|
|
root@culturestrings |
0a05a5 |
cfg_script="$0"
|
|
root@culturestrings |
0a05a5 |
cfg_srcdir=$(cd -- "${cfg_script%/*}/" ; pwd -P)
|
|
root@culturestrings |
0a05a5 |
|
|
root@culturestrings |
b0963f |
source /root/config/private/config/server.ports
|
|
root@culturestrings |
11a554 |
source /root/config/private/keys/pagure/pagure.keys
|
|
root@culturestrings |
0a05a5 |
source /root/config/private/config/hostinfo/${sitezone}
|
|
root@culturestrings |
11a554 |
|
|
root@culturestrings |
11a554 |
sed -e 's/@ssh_port@/'${ssh_port}'/g' \
|
|
root@culturestrings |
11a554 |
-e 's/@pagure_flask_key@/'${pagure_flask_key}'/g' \
|
|
root@culturestrings |
11a554 |
-e 's/@pagure_pgsql_key@/'${pagure_pgsql_key}'/g' \
|
|
root@culturestrings |
11a554 |
-e 's/@pagure_email_key@/'${pagure_email_key}'/g' \
|
|
root@culturestrings |
026bf1 |
-e 's/@sitename@/'${sitename}'/g' \
|
|
root@culturestrings |
026bf1 |
-e 's/@sitezone@/'${sitezone}'/g' \
|
|
root@culturestrings |
026bf1 |
-e 's/@sitemask@/'${sitemask}'/g' \
|
|
root@culturestrings |
026bf1 |
-e 's/@smtphost@/'${smtphost}'/g' \
|
|
root@culturestrings |
026bf1 |
-e 's/@docssite@/'${docssite}'/g' \
|
|
root@culturestrings |
026bf1 |
-e 's/@docszone@/'${docszone}'/g' \
|
|
root@culturestrings |
026bf1 |
-e 's/@devadmin@/'${devadmin}'/g' \
|
|
root@culturestrings |
0a05a5 |
"${cfg_srcdir}/pagure.cfg.in"
|
|
root@culturestrings |
026bf1 |
|
|
root@culturestrings |
026bf1 |
cat /root/config/private/config/pagure_ssh.pub
|