Skip to content

Commit a07fce2

Browse files
authored
doc: change config.sh to gen-config-yaml.sh (#68)
Fix #67
1 parent 4d4b052 commit a07fce2

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

example/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
### Run
22

33
```
4-
$ chmod +x config.sh
5-
$ sh config.sh
4+
$ chmod +x gen-config-yaml.sh
5+
$ sh gen-config-yaml.sh
66
$ docker-compose -p docker-apisix up -d
77
```
88

example/config.sh

Whitespace-only changes.

example/gen-config-yaml.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
export etcd_url='http://172.18.5.10:2379'
4+
5+
wget https://raw.githubusercontent.com/apache/incubator-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
10+
11+
mv config.yaml ./apisix_conf/config.yaml

0 commit comments

Comments
 (0)