File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 22
33export etcd_url=' http://172.18.5.10:2379'
44
5- wget https://raw.githubusercontent.com/apache/apisix/master/conf/config.yaml
6-
7- sed -i -e ' :a' -e ' N' -e ' $!ba' -e " s/allow_admin[a-z: #\/._]*\n\( *- [0-9a-zA-Z: #\/._',]*\n*\)*//g" config.yaml
8-
9- sed -i -e " s%http://[0-9.]*:2379%` echo $etcd_url ` %g" config.yaml
5+ wget https://raw.githubusercontent.com/apache/apisix/master/conf/config-default.yaml -O config.yaml
6+
7+ if [[ " $unamestr " == ' Darwin' ]]; then
8+ sed -i ' ' -e ' :a' -e ' N' -e ' $!ba' -e " s/allow_admin[a-z: #\/._]*\n\( *- [0-9a-zA-Z: #\/._',]*\n*\)*//g" config.yaml
9+ sed -i ' ' -e " s%http://[0-9.]*:2379%` echo $etcd_url ` %g" config.yaml
10+ else
11+ sed -i -e ' :a' -e ' N' -e ' $!ba' -e " s/allow_admin[a-z: #\/._]*\n\( *- [0-9a-zA-Z: #\/._',]*\n*\)*//g" config.yaml
12+ sed -i -e " s%http://[0-9.]*:2379%` echo $etcd_url ` %g" config.yaml
13+ fi
1014
1115mv config.yaml ./apisix_conf/config.yaml
You can’t perform that action at this time.
0 commit comments