You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/08/19 10:16:33 UTC

[GitHub] [apisix-docker] gxthrj opened a new pull request #72: fix: mv config.yml to config-default.yml in the latest version of apisix

gxthrj opened a new pull request #72:
URL: https://github.com/apache/apisix-docker/pull/72


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-docker] gxthrj merged pull request #72: fix: mv config.yml to config-default.yml in the latest version of apisix

Posted by GitBox <gi...@apache.org>.
gxthrj merged pull request #72:
URL: https://github.com/apache/apisix-docker/pull/72


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-docker] membphis commented on a change in pull request #72: fix: mv config.yml to config-default.yml in the latest version of apisix

Posted by GitBox <gi...@apache.org>.
membphis commented on a change in pull request #72:
URL: https://github.com/apache/apisix-docker/pull/72#discussion_r472975652



##########
File path: example/gen-config-yaml.sh
##########
@@ -2,10 +2,14 @@
 
 export etcd_url='http://172.18.5.10:2379'
 
-wget https://raw.githubusercontent.com/apache/apisix/master/conf/config.yaml
-
-sed -i -e ':a' -e 'N' -e '$!ba' -e "s/allow_admin[a-z: #\/._]*\n\( *- [0-9a-zA-Z: #\/._',]*\n*\)*//g" config.yaml
-
-sed -i -e "s%http://[0-9.]*:2379%`echo $etcd_url`%g" config.yaml
+wget https://raw.githubusercontent.com/apache/apisix/master/conf/config-default.yaml -o config.yaml
+
+if [[ "$unamestr" == 'Darwin' ]]; then
+   sed -i '' -e ':a' -e 'N' -e '$!ba' -e "s/allow_admin[a-z: #\/._]*\n\( *- [0-9a-zA-Z: #\/._',]*\n*\)*//g" config.yaml
+   sed -i '' -e "s%http://[0-9.]*:2379%`echo $etcd_url`%g" config.yaml
+else
+	sed -i -e ':a' -e 'N' -e '$!ba' -e "s/allow_admin[a-z: #\/._]*\n\( *- [0-9a-zA-Z: #\/._',]*\n*\)*//g" config.yaml

Review comment:
       bad indentation




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-docker] gxthrj commented on a change in pull request #72: fix: mv config.yml to config-default.yml in the latest version of apisix

Posted by GitBox <gi...@apache.org>.
gxthrj commented on a change in pull request #72:
URL: https://github.com/apache/apisix-docker/pull/72#discussion_r474521520



##########
File path: example/gen-config-yaml.sh
##########
@@ -2,10 +2,14 @@
 
 export etcd_url='http://172.18.5.10:2379'
 
-wget https://raw.githubusercontent.com/apache/apisix/master/conf/config.yaml
-
-sed -i -e ':a' -e 'N' -e '$!ba' -e "s/allow_admin[a-z: #\/._]*\n\( *- [0-9a-zA-Z: #\/._',]*\n*\)*//g" config.yaml
-
-sed -i -e "s%http://[0-9.]*:2379%`echo $etcd_url`%g" config.yaml
+wget https://raw.githubusercontent.com/apache/apisix/master/conf/config-default.yaml -o config.yaml
+
+if [[ "$unamestr" == 'Darwin' ]]; then
+   sed -i '' -e ':a' -e 'N' -e '$!ba' -e "s/allow_admin[a-z: #\/._]*\n\( *- [0-9a-zA-Z: #\/._',]*\n*\)*//g" config.yaml
+   sed -i '' -e "s%http://[0-9.]*:2379%`echo $etcd_url`%g" config.yaml
+else
+	sed -i -e ':a' -e 'N' -e '$!ba' -e "s/allow_admin[a-z: #\/._]*\n\( *- [0-9a-zA-Z: #\/._',]*\n*\)*//g" config.yaml

Review comment:
       done




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org