Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does this plug-in not need to modify plugin.cfg #17

Open
BailinSong opened this issue Mar 4, 2020 · 0 comments
Open

Why does this plug-in not need to modify plugin.cfg #17

BailinSong opened this issue Mar 4, 2020 · 0 comments

Comments

@BailinSong
Copy link

why modify other files by "sed"

# insert nacos into plugin
sed -i '/coredns\/core\/dnsserver/a\\t_ "coredns/plugin/nacos"' core/coredns.go
sed -i '/whoami/a\\t"nacos",' core/dnsserver/zdirectives.go
sed -i '/coredns\/plugin\/whoami/a\\t_ "coredns/plugin/nacos"' core/plugin/zplugin.go

# modify import
sed -i "s/github.com\/coredns\///g" `grep 'github.com/coredns/' -rl . | grep '.go'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant