Skip to content

Commit

Permalink
fix: sed
Browse files Browse the repository at this point in the history
  • Loading branch information
kamlyli committed Sep 28, 2023
1 parent 87139eb commit 898546a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
6 changes: 4 additions & 2 deletions centos/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ deployment:
config_provider: yaml
_EOC_
else
sed -i 's/role: traditional/role: data_plane/' config.yaml
sed -i 's/config_provider: etcd/config_provider: yaml/' config.yaml
# updating config.yaml for standalone mode
sed -i 's/role: traditional/role: data_plane/' ${PREFIX}/conf/config.yaml
sed -i 's/role_traditional:/role_data_plane:/' ${PREFIX}/conf/config.yaml
sed -i 's/config_provider: etcd/config_provider: yaml/' ${PREFIX}/conf/config.yaml
fi

if [ ! -f "${PREFIX}/conf/apisix.yaml" ]; then
Expand Down
6 changes: 4 additions & 2 deletions debian-dev/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ deployment:
config_provider: yaml
_EOC_
else
sed -i 's/role: traditional/role: data_plane/' config.yaml
sed -i 's/config_provider: etcd/config_provider: yaml/' config.yaml
# updating config.yaml for standalone mode
sed -i 's/role: traditional/role: data_plane/' ${PREFIX}/conf/config.yaml
sed -i 's/role_traditional:/role_data_plane:/' ${PREFIX}/conf/config.yaml
sed -i 's/config_provider: etcd/config_provider: yaml/' ${PREFIX}/conf/config.yaml
fi

if [ ! -f "${PREFIX}/conf/apisix.yaml" ]; then
Expand Down
6 changes: 4 additions & 2 deletions debian/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ deployment:
config_provider: yaml
_EOC_
else
sed -i 's/role: traditional/role: data_plane/' config.yaml
sed -i 's/config_provider: etcd/config_provider: yaml/' config.yaml
# updating config.yaml for standalone mode
sed -i 's/role: traditional/role: data_plane/' ${PREFIX}/conf/config.yaml
sed -i 's/role_traditional:/role_data_plane:/' ${PREFIX}/conf/config.yaml
sed -i 's/config_provider: etcd/config_provider: yaml/' ${PREFIX}/conf/config.yaml
fi

if [ ! -f "${PREFIX}/conf/apisix.yaml" ]; then
Expand Down
6 changes: 4 additions & 2 deletions redhat/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ deployment:
config_provider: yaml
_EOC_
else
sed -i 's/role: traditional/role: data_plane/' config.yaml
sed -i 's/config_provider: etcd/config_provider: yaml/' config.yaml
# updating config.yaml for standalone mode
sed -i 's/role: traditional/role: data_plane/' ${PREFIX}/conf/config.yaml
sed -i 's/role_traditional:/role_data_plane:/' ${PREFIX}/conf/config.yaml
sed -i 's/config_provider: etcd/config_provider: yaml/' ${PREFIX}/conf/config.yaml
fi

if [ ! -f "${PREFIX}/conf/apisix.yaml" ]; then
Expand Down

0 comments on commit 898546a

Please sign in to comment.